Struct worker::Headers [−][src]
pub struct Headers(pub EdgeHeaders);
Expand description
A Headers representation used in Request and Response objects.
Tuple Fields
0: EdgeHeaders
Implementations
Returns all the values of a header within a Headers
object with a given name.
Returns an error if the name is invalid (e.g. contains spaces)
Returns a boolean stating whether a Headers
object contains a certain header.
Returns an error if the name is invalid (e.g. contains spaces)
Returns an error if the name is invalid (e.g. contains spaces)
Sets a new value for an existing header inside a Headers
object, or adds the header if it does not already exist.
Returns an error if the name is invalid (e.g. contains spaces)
Deletes a header from a Headers
object.
Returns an error if the name is invalid (e.g. contains spaces)
or if the JS Headers objects’s guard is immutable (e.g. for an incoming request)
Returns an iterator allowing to go through all key/value pairs contained in this object.
Returns an iterator allowing you to go through all keys of the key/value pairs contained in this object.
Trait Implementations
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for Headers
impl UnwindSafe for Headers
Blanket Implementations
Mutably borrows from an owned value. Read more