Request
Represents the common fields and attributes of an HTTP request.
Use it to define common headers, error-handling, base url, etc. for a specific API for example. By calling one of the executing methods like get or post a specific request is built from the template and send to the server.
Constructors
Properties
Functions
adds a header to accept JSON as response
sets the ArrayBuffer content to the request
sets the cache property of the Request
adds the given Cache-Control value to the http headers
adds the given Content-Type value to the http headers
creates a copy of the Request.
sets the credentials property of the Request
appends the given parameters to the url
sets the redirect property of the Request
sets the referrerPolicy property of the Request
sets the requestMode property of the Request
adds an Middleware to handle all requests and responses.
adds Middlewares to handle all requests and responses.