Allocate a low-level HTTP request context bound to write and read BIOs.
Declared in <openssl/http.h>
OSSL_HTTP_REQ_CTX*
OSSL_HTTP_REQ_CTX_new(
BIO* wbio,
BIO* rbio,
int buf_size);
New request context including an internal memory BIO for headers, or NULL on failure.
| Name | Description |
|---|---|
| wbio | BIO used to send the request (may equal rbio). |
| rbio | BIO used to receive the response (may equal wbio). |
| buf_size | Max response header line length and read chunk size; <= 0 uses OSSL_HTTP_DEFAULT_MAX_LINE_LEN. |