refactor: Moved types into uri folder

This commit is contained in:
2025-09-09 12:34:22 +01:00
parent c66c57f70f
commit 1779522387
5 changed files with 4 additions and 4 deletions

View File

@@ -4,9 +4,9 @@ import gleam/list
import gleam/option.{Some}
import gleam/string
import gleam/uri
import types.{type Uri, Uri}
import uri/internal/parser
import uri/internal/utils
import uri/types.{type Uri, Uri}
/// Parses a string to the RFC3986 standard.
/// `Error` is returned if it fails parsing.

View File

@@ -7,7 +7,7 @@ import gleam/string
import splitter
import uri/internal/utils
import types.{type Uri, Uri, empty_uri}
import uri/types.{type Uri, Uri, empty_uri}
pub fn parse(uri: String) -> Result(Uri, Nil) {
case parse_scheme(uri) {

View File

@@ -5,7 +5,7 @@ import gleam/option.{type Option, None, Some}
import gleam/result
import gleam/string
import splitter.{type Splitter}
import types.{type Uri, Uri}
import uri/types.{type Uri, Uri}
pub const scheme_port = [
#("http", 80),

View File

@@ -2,8 +2,8 @@ import gleam/list
import gleam/option.{None, Some}
import gleeunit/should
import startest.{describe, it}
import types.{Uri, empty_uri}
import uri
import uri/types.{Uri, empty_uri}
pub fn main() {
startest.run(startest.default_config())