v0.1.0 · Interface
http-body
HTTP bodies.
Functions
F
new
FCreates a new empty body that can be used for outgoing requests and responses.
append
FAppends the contents of the body <code>src</code> to the body <code>dest</code>.
read
FReads from a body.
write
FWrites to a body.
write-front
FPrepends bytes to the front of a body.
close
FFrees a body.
get-known-length
FReturns a <code>u64</code> body length if the length of a body is known, or <code>none</code> otherwise.
append-trailer
FAdds a body trailing header with given value.
get-trailer-names
FGets the names of the trailers associated with this body.
get-trailer-value
FGets the value for the trailer with the given name, or <code>none</code> if the trailer is not present.
get-trailer-values
Gets multiple values associated with the trailer with the given name.