URI.Authority
- Package
- purescript-uri
- Repository
- purescript-contrib/purescript-uri
#Authority Source
data Authority userInfo hosts
The authority part of a URI. For example: purescript.org
,
localhost:3000
, user@example.net
.
Constructors
Instances
#AuthorityOptions Source
type AuthorityOptions userInfo hosts = AuthorityParseOptions userInfo hosts (AuthorityPrintOptions userInfo hosts ())
A row type for describing the options fields used by the authority parser and printer.
Used as Record (AuthorityOptions userInfo hosts)
when type annotating an
options record.
#AuthorityParseOptions Source
type AuthorityParseOptions userInfo hosts r = (parseHosts :: Parser String hosts, parseUserInfo :: UserInfo -> Either URIPartParseError userInfo | r)
A row type for describing the options fields used by the authority parser.
Used as Record (AuthorityParseOptions userInfo hosts ())
when type
annotating an options record.
#AuthorityPrintOptions Source
type AuthorityPrintOptions userInfo hosts r = (printHosts :: hosts -> String, printUserInfo :: userInfo -> UserInfo | r)
A row type for describing the options fields used by the authority printer.
Used as Record (AuthorityPrintOptions userInfo hosts ())
when type
annotating an options record.
#print Source
print :: forall userInfo hosts r. Record (AuthorityPrintOptions userInfo hosts r) -> Authority userInfo hosts -> String
A printer for the authority part of a URI. Will print the value with a
"//"
prefix.
Re-exports from URI.Host
#IPv6Address Source
newtype IPv6Address
This type and parser are much too forgiving currently, allowing almost anything through that looks vaguely IPv6ish.
Instances
#IPv4Address Source
#Host Source
#_IPv6Address Source
_IPv6Address :: Prism' Host IPv6Address
A prism for the IPv6Address
constructor.
#_IPv4Address Source
_IPv4Address :: Prism' Host IPv4Address
A prism for the IPv4Address
constructor.
Re-exports from URI.Port
Re-exports from URI.UserInfo
- Modules
- URI
- URI.
AbsoluteURI - URI.
Authority - URI.
Common - URI.
Extra. MultiHostPortPair - URI.
Extra. QueryPairs - URI.
Extra. UserPassInfo - URI.
Fragment - URI.
HierarchicalPart - URI.
Host - URI.
Host. Gen - URI.
Host. IPv4Address - URI.
Host. IPv6Address - URI.
Host. RegName - URI.
HostPortPair - URI.
HostPortPair. Gen - URI.
Path - URI.
Path. Absolute - URI.
Path. NoScheme - URI.
Path. Rootless - URI.
Path. Segment - URI.
Port - URI.
Port. Gen - URI.
Query - URI.
RelativePart - URI.
RelativeRef - URI.
Scheme - URI.
Scheme. Common - URI.
URI - URI.
URIRef - URI.
UserInfo