...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(Inherited from http::header
)
Set the request-target string.
void target( string_view s);
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.
Name |
Description |
---|---|
|
A string representing the request-target. |
This function is only available when isRequest
== true
.