[#OSSL_HTTP_REQ_CTX_new]
= OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;new
:mrdocs:

Allocate a low&hyphen;level HTTP request context bound to write and read BIOs&period;

== Synopsis

Declared in `&lt;openssl&sol;http&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_HTTP_REQ_CTX.adoc[OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX]*
OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;new(
    xref:BIO.adoc[BIO]* wbio,
    xref:BIO.adoc[BIO]* rbio,
    int buf&lowbar;size);
----

== Return Value

New request context including an internal memory BIO for headers, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wbio*
| BIO used to send the request (may equal `rbio)&period;`
| *rbio*
| BIO used to receive the response (may equal `wbio)&period;`
| *buf&lowbar;size*
| Max response header line length and read chunk size&semi; &lt;&equals; 0 uses OSSL&lowbar;HTTP&lowbar;DEFAULT&lowbar;MAX&lowbar;LINE&lowbar;LEN&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
