Creates the request context using a http method and request resource url
url of the requested resource
http method
Sets a cookie with the name and value. NO check for duplicate cookies is performed
Sets the body of the http request either as a string or FormData
Note that setting a body on a HTTP GET, HEAD, DELETE, CONNECT or TRACE request is discouraged. https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.7.3.1
the body of the request
Replaces the url set in the constructor with this url.
Generated using TypeDoc
Represents an HTTP request context