forked from boostorg/beast
@@ -171,6 +171,11 @@ struct header<true, Fields> : Fields
|
||||
|
||||
/** Returns the request-target string.
|
||||
|
||||
The request target string returned is the same string which
|
||||
was received from the network or stored. In particular, it will
|
||||
contain url-encoded characters and should follow the syntax
|
||||
rules for URIs used with HTTP.
|
||||
|
||||
@note This function is only available when `isRequest == true`.
|
||||
*/
|
||||
string_view
|
||||
@@ -178,6 +183,12 @@ struct header<true, Fields> : Fields
|
||||
|
||||
/** Set the request-target string.
|
||||
|
||||
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.
|
||||
|
||||
@param s A string representing the request-target.
|
||||
|
||||
@note This function is only available when `isRequest == true`.
|
||||
|
||||
Reference in New Issue
Block a user