The options to construct the class.
Protected
Readonly
_loggerThe service used to log information in the terminal.
Protected
Readonly
_nodeThe node-fetch library. Since it's an ESM only module, Jimpex loads it on boot and makes it available on the container.
Protected
Readonly
_optionsThe service customization options.
The customization options.
Protected
_logProtected
_logMakes a fetch request.
The URL to fetch.
The custom options for the request.
Creates a dictionary with all the custom headers a request has. By custom header it
means all the headers which name start with x-
.
The request from which it will try to get the headers.
The options to customize the behavior with certain headers.
It takes a dictionary of headers and normalize the names so each word will start with an upper case character. This is helpful in case you added custom headers and didn't care about the casing, or when copying headers from a server request, as they all come tranformed into lower case.
The dictionary of headers to normalize.
A set of utilities to work with HTTP requests and responses.