README

Yoorkin/rabbit-tea/url does not have a README file

#
Protocol

pub(all) enum Protocol {
Http
Https
Other(String)
}

impl Compare for Protocol
impl Eq for Protocol
impl Show for Protocol

#
Url

pub(all) struct Url {
protocol : Protocol
host : String
port : Int?
path : String
query : String?
fragment : String?
}

Url

https://example.com:8042/over/there?name=ferret#nose \___/ \______________/\_________/ \_________/ \__/ | | | | | scheme authority path query fragment

This diagram is from https://package.elm-lang.org/packages/elm/url/latest/Url
impl Compare for Url
impl Eq for Url
impl Show for Url

#
Url::to_string

fn Url::to_string(self : Url) -> String

#
UrlRequest

pub(all) enum UrlRequest {
Internal(Url)
External(String)
}

Represent the URL change request from the user, trigger by @html.a tag. The Internal means the target URL is in the same domain. The External means the target URL is in another site.
impl Eq for UrlRequest
impl Show for UrlRequest

#
parse

fn parse(url : String) -> Url raise

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io