emerging-ezhttp
Releases (14)
-
0.21.0.0 indexed
-
0.20.0.0 unindexed
-
0.19.0.0 unindexed
-
0.18.0.0 unindexed
-
0.17.0.0 unindexed
-
0.16.0.0 unindexed
-
0.15.0.0 unindexed
-
0.14.0.0 unindexed
-
0.13.0.0 unindexed
-
0.12.0.0 unindexed
-
0.11.0.0 unindexed
-
0.10.0.0 unindexed
-
0.9.0.0 invalid
expected a fresh constructor name (duplicate declaration: Text)
-
0.8.0.0 invalid
expected a fresh constructor name (duplicate declaration: Text)
Definitions (909)
src/cache.bend
- def cache.one.age_okmax-age, kept only when the argument is digits (delta-seconds)
- def cache.one.agemax-age
- def cache.one.cacheno-cache
- def cache.one.storeno-store
- def cache.one.flaga directive with no `=` argument
- def cache.one.dispatchflag or name=value
- def cache.oneone directive text
- def cache.foldwalk directives.
- def cache.parseCache-Control field value (RFC 9111 §5.2)
- def cache.noterecord an Expires header beside Cache-Control (RFC 9111 §5.3)
- def cache.max_agetrue when max-age is present, so it overrides Expires (RFC 9111 §4.2.1)
- def cache.fresh.gofreshness from max-age.
- def cache.fresh.cacheno-cache must revalidate
- def cache.fresh.storeno-store is not reused
- def cache.freshage seconds against the directives.
src/client.bend
- type Responsestructured client result: transport/parse error, or an HTTP response: its status, its header fields and reason phrase as text (decoded from the octets received as UTF-8, SPEC.md HTTP-BODY-4, HTTP-CLI-11), and its body's octets as they arrived, packed (`client.text` decodes them when asked)
- def client.texta body's octets decoded as UTF-8 (SPEC.md HTTP-BODY-4)
- def from.gota response read off its octets as a client Response, its head's octet text decoded
- def http.answeran exchange's answer as a client Response, read by the request's method (packed.bend packed.reply: interim 1xx heads skipped, no body for HEAD, 1xx, 204 or 304); a failed exchange keeps its reason (wirespec.bend wire.failed)
- def http.sendan exchange as wirespec.bend wrote it, with the body's octets after it: sent and read by its own method, or the URL's reason
- def http.loc.shapedan exchange for a body of this shape, sent with the body's octets
- def http.loca URL that came apart (or not) into an HTTP exchange with this body
- def http.send.timedan exchange as wirespec.bend wrote it, bounded by a timeout, sent and read by its own method
- def client.timed.shapeda timed exchange for a body of this shape
- def client.timeda request with this method, headers and body, bounded by a timeout in milliseconds
- def client.get.timedGET bounded by a timeout in milliseconds
- def client.hopthe next hop after a response (redirect.bend), and the response; a failed exchange stops
- def client.aftera response, or the GET its hop asks for
- def client.followGET, following redirects while `left` hops remain; `body` goes with this hop only.
- def client.request.goa request once it is known whether it follows redirects
- def client.request.optsa request with a method, headers, body and timeout; it follows redirects when `follow` is set and the method is GET (redirect.bend redirect.follows), and answers its first response otherwise
- def client.get.optsGET with headers and a timeout, following redirects when `follow` is set
- def client.timed_outwhether a response is the failure of an exchange that ran out of time
- def client.getGET
- def client.headHEAD (RFC 9110 §9.3.2)
- def client.postPOST
- def client.putPUT
- def client.deleteDELETE
- def client.optionsOPTIONS
- def client.bearerAuthorization: Bearer … (auth.bend)
- def client.basicAuthorization: Basic … (auth.bend; RFC 7617, RFC 4648 Base64)
src/cookie.bend
- type Cookieone cookie.
- def cookie.newa session cookie with no attributes yet
- def cookie.expiresreplace Expires
- def cookie.agereplace Max-Age
- def cookie.domainreplace Domain and clear host-only
- def cookie.dirreplace Path
- def cookie.secure_onset the Secure flag
- def cookie.http_onset the HttpOnly flag
- def cookie.site_setreplace SameSite
- def cookie.site.noneNone, or unrecognized
- def cookie.site.strictStrict, or continue
- def cookie.site.laxLax / Strict / None, canonical spelling (RFC 6265bis SameSite)
- def cookie.sitecanonicalize a SameSite value; anything else is dropped
- def cookie.age_okkeep a numeric Max-Age, ignore the attribute when it is not digits
- def cookie.flag.httpHttpOnly flag, or leave the cookie alone
- def cookie.flag.secureSecure flag, else HttpOnly
- def cookie.flaga flag attribute (no equals sign)
- def cookie.named.siteSameSite, or an unrecognized attribute
- def cookie.named.pathPath
- def cookie.named.domainDomain, stored lowercase
- def cookie.named.ageMax-Age
- def cookie.named.expiresExpires, stored as the HTTP-date text
- def cookie.namedone name=value attribute
- def cookie.apply.cutone attribute piece, flag or name=value
- def cookie.applyone semicolon-separated attribute
- def cookie.foldwalk attributes.
- def cookie.from.namereject an empty name (RFC 6265 §4.1.1)
- def cookie.fromthe name=value pair, then the attribute list
- def cookie.parse.partsSet-Cookie split on `;`
- def cookie.parseparse one Set-Cookie line (the field value, not the header name)
- def cookie.opt.of`; Name=value` when value is present
- def cookie.optan optional attribute clause
- def cookie.domain_text`; Domain=…` only when a Domain attribute was set
- def cookie.mark`; Secure` / `; HttpOnly` when the flag is set
- def cookie.lineSet-Cookie field value (RFC 6265 §4.1.1)
- def cookie.seta Set-Cookie header
- def cookie.pairs.keepkeep name=value when the name is not empty
- def cookie.pairs.oneone cookie as a request pair, dropped when the name is empty
- def cookie.pairsname=value pieces, empty names removed
- def cookie.joinCookie field value: pairs joined by `; ` (RFC 6265 §5.4)
- def cookie.requesta Cookie request header
- def cookie.slashes.chcount `/` in a path
- def cookie.slasheshow many slashes a path holds
- def cookie.skip.chdrop the reversed prefix through the first slash
- def cookie.skipreversed path with the last segment removed
- def cookie.beforecharacters before the right-most slash
- def cookie.default_of`/` when the path has fewer than two slashes, else the directory prefix
- def cookie.default_pathdefault-path (RFC 6265 §5.1.4)
- def cookie.fill_domainhost-only cookies take the response host; Domain stays as parsed
- def cookie.fill_path.ofan absent Path becomes default-path
- def cookie.fill_pathan absent Path becomes default-path
- def cookie.receivestore the response host on a host-only cookie and fill default-path
- def cookie.ipv4.stepa dot continues the scan, a digit keeps it, anything else stops
- def cookie.ipv4.gotrue when the host is only digits and dots and contains a dot
- def cookie.ipv4IPv4 literal (no subdomain match, RFC 6265 §5.1.3)
- def cookie.domain_suffixsuffix match when the host is not an IPv4 address
- def cookie.domain_eqexact match, else the suffix rule
- def cookie.domain_matchdomain-match (RFC 6265 §5.1.3).
- def cookie.domain_okhost-only is exact; a Domain attribute uses domain-match