A method for getting all of the default parameters provided, the value is a readonly and any modifications done will be ignored. Please use the provider methods for adding them.
A method for getting all of the pre-request handlers provided, the value is a readonly and any modifications done will be ignored. Please use the provider methods for adding them.
A method for getting all of the pre-response handlers provided, the value is a readonly and any modifications done will be ignored. Please use the provider methods for adding them.
A method for providing a single header which is added to every request.
the name of the header
the header's content
A method for providing more than one header which are added to every request.
an object with strings as the keys (header name) and strings as values (header content)
A method for providing a single query parameter which is added to every request.
the name of the query parameter
the query parameter's content
A method for providing more than one query parameters which are added to every request.
Method for providing a function which is called before every request is called out to the final destination. This can be called more than once which means there can be more than one handler. The order provided is the order called. Note: if this handler throws an error when it is executed then the request will be aborted.
the instance of the IHttpPreRequestHandler
Method for providing a function which is called after every response is got from the url and before the result is returned. This can be called more than once which means there can be more than one handler. The order provided is the order called. Note: if this handler throws an error when it is executed then the respone will not be returned
the instance of the IHttpPreResponseHandler
Generated using TypeDoc
A method for getting all of the default headers provided, the value is a readonly and any modifications done will be ignored. Please use the provider methods for adding them.