Parse a URL into (scheme, host, port, path)
@eryx/http/util Module
Summary
Functions
API Reference
Functions
util.resolveRedirect
Resolves a possibly-relative Location header against the original URL.
util.encodeQuery
Encodes a table as a URL query string without the leading ?.
util.appendQuery
Appends encoded query parameters to a URL.
util.encodeForm
Encodes a table as application/x-www-form-urlencoded.
util.decodeForm
Decodes a URL query string or x-www-form-urlencoded body.
util.parseRequestTarget
Splits a request target into pathname and decoded query parameters.
util.parseContentType
Parses a Content-Type header into its media type and lowercase parameters.