[#OSSL_HTTP_REQ_CTX_set1_req] = OSSL_HTTP_REQ_CTX_set1_req :mrdocs: Finalize the request by attaching an ASN.1 DER body and Content‐Type/Length headers. == Synopsis Declared in `<openssl/http.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_HTTP_REQ_CTX_set1_req( xref:OSSL_HTTP_REQ_CTX.adoc[OSSL_HTTP_REQ_CTX]* rctx, char const* content_type, xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it, xref:ASN1_VALUE.adoc[ASN1_VALUE] const* req); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *rctx* | Request context prepared with OSSL_HTTP_REQ_CTX_set_request_line() (and keep‐alive expectations if needed). | *content_type* | Content‐Type header value; must be NULL when `req` is NULL. | *it* | ASN.1 item template used to encode `req` (DER; not streaming). | *req* | ASN.1 value to send as the body, or NULL for a body‐less (for example GET) request when keep‐alive still needs finalization. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#