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
src to the body dest.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
u64 body length if the length of a body is known, or none 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
none if the trailer is not present.get-trailer-values
Gets multiple values associated with the trailer with the given name.