Std.Http.Safe
15 public declarations
- bodyLength
&Array[(Str, Str)] -> Result[Int, Std.Http.Safe.Unsafe]How long a body a message says is coming.
- changeAllowed
&Std.Http.Method -> &Array[(Str, Str)] -> Result[(), Std.Http.Safe.Unsafe]Whether a request may change something.
- explain
&Std.Http.Safe.Unsafe -> StrWhat a refusal says.
- framing
&Array[(Str, Str)] -> Result[(Int, Bool), Std.Http.Safe.Unsafe]How long a body a message says is coming.
- headersWritable
&Array[(Str, Str)] -> Result[(), Std.Http.Safe.Unsafe]Every header, checked, so a message is refused before any of it is written
- headerWritable
Str -> Str -> Result[(), Std.Http.Safe.Unsafe]Whether a header may be written as it stands.
- isChunked
&Array[(Str, Str)] -> BoolWhether a message says its body is chunked, which is a separate question
- originOf
&Std.Url.Url -> StrThe scheme and host a URL names, which is what an origin comparison is
- outboundHost
Str -> &Array[Str] -> Result[Str, Std.Http.Safe.Unsafe]An address a request named, refused when it is one the network trusts.
- Provenance
Where a request says it came from.
- provenanceOf
&Array[(Str, Str)] -> Std.Http.Safe.ProvenanceWhere the request says it came from.
- redirectTarget
Str -> &Array[Str] -> Result[Str, Std.Http.Safe.Unsafe]A redirect target the program named, or a refusal.
- reservedHost
Str -> BoolWhether a host is one the network trusts and a request should not be able
- resolveUnder
Str -> Str -> Result[Str, Std.Http.Safe.Unsafe]A path resolved under a root it cannot leave.
- Unsafe
Why a request or a value was refused.
