Struct worker::Request [−][src]
pub struct Request { /* fields omitted */ }
Expand description
A Request representation for handling incoming and creating outbound HTTP requests.
Implementations
Construct a new Request
with an HTTP Method.
Construct a new Request
with a RequestInit
configuration.
Access this request’s body encoded as JSON.
Access this request’s body as a form-encoded payload and pull out fields and files.
Get a mutable reference to this request’s Headers
.
Note: they can only be modified if the request was created from scratch or cloned.