OSSL_HTTP_REQ_CTX_new

Allocate a low-level HTTP request context bound to write and read BIOs.

Synopsis

Declared in <openssl/http.h>

OSSL_HTTP_REQ_CTX*
OSSL_HTTP_REQ_CTX_new(
    BIO* wbio,
    BIO* rbio,
    int buf_size);

Return Value

New request context including an internal memory BIO for headers, or NULL on failure.

Parameters

NameDescription
wbioBIO used to send the request (may equal rbio).
rbioBIO used to receive the response (may equal wbio).
buf_sizeMax response header line length and read chunk size; <= 0 uses OSSL_HTTP_DEFAULT_MAX_LINE_LEN.