[#OSSL_HTTP_REQ_CTX_set_max_response_length]
= OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;set&lowbar;max&lowbar;response&lowbar;length
:mrdocs:

Cap the maximum HTTP response body length accepted by `rctx&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;set&lowbar;max&lowbar;response&lowbar;length(
    xref:OSSL_HTTP_REQ_CTX.adoc[OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX]* rctx,
    unsigned long len);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rctx*
| HTTP request context&period;
| *len*
| Maximum response length in bytes (0 may restore the implementation default)&period;
|===


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