refactor: Renamed as gluri
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name = "uri"
|
||||
name = "gluri"
|
||||
version = "1.0.0"
|
||||
|
||||
# Fill out these fields if you intend to generate HTML documentation or publish
|
||||
|
||||
@@ -4,9 +4,9 @@ import gleam/list
|
||||
import gleam/option.{Some}
|
||||
import gleam/string
|
||||
import gleam/uri
|
||||
import uri/internal/parser
|
||||
import uri/internal/utils
|
||||
import uri/types.{type Uri, Uri}
|
||||
import gluri/internal/parser
|
||||
import gluri/internal/utils
|
||||
import gluri/types.{type Uri, Uri}
|
||||
|
||||
/// Parses a string to the RFC3986 standard.
|
||||
/// `Error` is returned if it fails parsing.
|
||||
@@ -4,10 +4,10 @@ import gleam/list.{Continue, Stop}
|
||||
import gleam/option.{None, Some}
|
||||
import gleam/result
|
||||
import gleam/string
|
||||
import gluri/internal/utils
|
||||
import splitter
|
||||
import uri/internal/utils
|
||||
|
||||
import uri/types.{type Uri, Uri, empty_uri}
|
||||
import gluri/types.{type Uri, Uri, empty_uri}
|
||||
|
||||
pub fn parse(uri: String) -> Result(Uri, Nil) {
|
||||
case parse_scheme(uri) {
|
||||
@@ -4,8 +4,8 @@ import gleam/list
|
||||
import gleam/option.{type Option, None, Some}
|
||||
import gleam/result
|
||||
import gleam/string
|
||||
import gluri/types.{type Uri, Uri}
|
||||
import splitter.{type Splitter}
|
||||
import uri/types.{type Uri, Uri}
|
||||
|
||||
pub const scheme_port = [
|
||||
#("http", 80),
|
||||
@@ -1,9 +1,9 @@
|
||||
import gleam/list
|
||||
import gleam/option.{None, Some}
|
||||
import gleeunit/should
|
||||
import gluri as uri
|
||||
import gluri/types.{Uri, empty_uri}
|
||||
import startest.{describe, it}
|
||||
import uri
|
||||
import uri/types.{Uri, empty_uri}
|
||||
|
||||
pub fn main() {
|
||||
startest.run(startest.default_config())
|
||||
@@ -4,9 +4,9 @@
|
||||
// import splitter
|
||||
// import types.{Uri}
|
||||
|
||||
// import uri
|
||||
import gluri as uri
|
||||
|
||||
pub fn main() {
|
||||
// uri.parse_query("a+c=1%23&b=2") |> echo
|
||||
uri.parse("http://my_host.com") |> echo
|
||||
Nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user