Home / Docs / Standard library / std.host
Request
A kind of the module std.host, which a module imports by name; the prelude does not put it in scope (spec/31 §1). Edition 0.4, 0.5 preview.
pub kind Request
method: internal Method
target: internal Text
segments: internal List[Text]
params: internal List[Param]
headers: internal List[Header]
body: internal Text
peer: internal Text
listener: internal TextA request, as the host read it (spec/31 §3, §4): its target in origin-form as received, its path split on / and percent-decoded segment by segment, the parameters of its query decoded in order, its headers with names in ASCII lower case in the order received, its whole body, the peer's IP address without its port, and the grant's address as the grant writes it. The parameters are params, since query is a reserved word (spec/01).
Specification
Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.