Performs a simple HTTP request and returns a simple response.
Both the request body and response body are fully loaded into memory. Suitable for small to medium-sized payloads.
The proxy URL.
The request method.
The target URL.
The request headers to send.
The request body as a Buffer.
The connection timeout in milliseconds.
The total request timeout in milliseconds.
The maximum headers size in bytes.
The maximum body size in bytes.
The result object containing the response or error details.
Performs a streaming HTTP request and returns a simple response.
The request body is streamed from a readable stream, allowing large uploads. The response body is fully loaded into memory.
The proxy URL.
The request method.
The target URL.
The request headers to send.
The request body as a readable stream.
The connection timeout in milliseconds.
The total request timeout in milliseconds.
The maximum headers size in bytes.
The maximum body size in bytes.
The result object containing the response or error details.
Performs a simple HTTP request and returns a streaming response.
The request body is fully loaded into memory, but the response is streamed, allowing large downloads to be processed incrementally.
The proxy URL.
The request method.
The target URL.
The request headers to send.
The request body as a Buffer.
The connection timeout in milliseconds.
The total request timeout in milliseconds.
The maximum headers size in bytes.
The result object containing the response or error details.
StaticregisterRegisters the http-client as a singleton in the DI container.
The DI container to register in.
Curl-based http-client implementation.
Uses the high-performance libcurl library via the node-libcurl bindings.
See
Depends:
Example