Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit b936bbe8ce.
PrevUpHomeNext
http::header::target (2 of 2 overloads)

Set the request-target string.

Synopsis
void
target(
    string_view s);
Description

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.

Parameters

Name

Description

s

A string representing the request-target.

Remarks

This function is only available when isRequest == true.


PrevUpHomeNext