| Home | Libraries | People | FAQ | More

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

(Inherited from `http::header`)

Set the request-method.

<h7> Synopsis </h7>

    void
    method(
        verb v);

<h7> Description </h7>

This function will set the method for requests to a known verb.

<h7> Parameters </h7>

Name | Description
--- | ---
`v` | The request method verb to set. This may not be `http::unknown`.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`std::invalid_argument` | when `v == verb::unknown`.

<h7> Remarks </h7>

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