Optional
options: SessionOptionsPrivate
Optional
alpnPrivate
alpsPrivate
Optional
certPrivate
Optional
clientPrivate
Optional
connectionPrivate
Optional
debugPrivate
disableIPV4Private
disableIPV6Private
fetchPrivate
Optional
forcePrivate
Optional
h2Private
Optional
h2Private
Optional
headerPrivate
Optional
headerPrivate
headersPrivate
Optional
insecurePrivate
Optional
ja3stringPrivate
jarPrivate
Optional
keyPrivate
Optional
priorityPrivate
Optional
proxyPrivate
Optional
pseudoPrivate
Optional
randomPrivate
Optional
sessionPrivate
Optional
supportedPrivate
Optional
supportedPrivate
timeoutRetrieves all cookies from the jar.
This getter fetches all cookies stored in the jar instance of the class.
An object where keys are URLs and values are objects containing cookies as key-value pairs.
{
"https://example.com/": {
"cookie1": "value1",
"cookie2": "value2"
},
"https://anotherdomain.com/": {
"cookieA": "valueA",
"cookieB": "valueB"
}
}
The 'delete' method performs a DELETE request to the provided URL with the provided options.
The URL to perform the DELETE request to.
Optional
options: DeleteRequestOptionsThe options for the DELETE request.
The response from the 'execute' method.
Private
executeThe 'execute' method performs a HTTP request of the provided method to the provided URL with the provided options.
The HTTP method of the request.
The URL to perform the request to.
The options for the request.
A new Response object.
Private
freeThe 'get' method performs a GET request to the provided URL with the provided options.
The URL to perform the GET request to.
Optional
options: GetRequestOptionsThe options for the GET request.
The response from the 'execute' method.
The 'head' method performs a HEAD request to the provided URL with the provided options.
The URL to perform the HEAD request to.
Optional
options: HeadRequestOptionsThe options for the HEAD request.
The response from the 'execute' method.
The 'options' method performs an OPTIONS request to the provided URL with the provided options.
The URL to perform the OPTIONS request to.
Optional
options: OptionsRequestOptionsThe options for the OPTIONS request.
The response from the 'execute' method.
The 'patch' method performs a PATCH request to the provided URL with the provided options.
The URL to perform the PATCH request to.
Optional
options: PatchRequestOptionsThe options for the PATCH request.
The response from the 'execute' method.
The 'post' method performs a POST request to the provided URL with the provided options.
The URL to perform the POST request to.
Optional
options: PostRequestOptionsThe options for the POST request.
The response from the 'execute' method.
The 'put' method performs a PUT request to the provided URL with the provided options.
The URL to perform the PUT request to.
Optional
options: PutRequestOptionsThe options for the PUT request.
The response from the 'execute' method.
Session class represents a HTTP session. It provides methods to perform various HTTP requests.