| Home | Libraries | People | FAQ | More

###### http::message::target (2 of 2 overloads)

(Inherited from `http::header`)

Set the request-target string.

<h7> Synopsis </h7>

    void
    target(
        string_view s);

<h7> Description </h7>

It is the caller's responsibility to ensure that the request target string follows the syntax rules for URIs used with HTTP. In particular, reserved or special characters must be url-encoded. The implementation does not perform syntax checking on the passed string.

<h7> Parameters </h7>

Name | Description
--- | ---
`s` | A string representing the request-target.

<h7> Remarks </h7>

This function is only available when `isRequest == true`.