| Home | Libraries | People | FAQ | More

###### http::message::message (8 of 14 overloads)

Constructor.

<h7> Synopsis </h7>

    template<
        class BodyArg,
        class FieldsArg>
    message(
        verb method,
        string_view target,
        unsigned version,
        BodyArg&& body_arg,
        FieldsArg&& fields_arg);

<h7> Description </h7><h7> Parameters </h7>

Name | Description
--- | ---
`method` | The request-method to use.
`target` | The request-target.
`version` | The HTTP-version.
`body_arg` | An argument forwarded to the `body` constructor.
`fields_arg` | An argument forwarded to the `Fields` constructor.

<h7> Remarks </h7>

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