boost::burl::multipart_form::text

Append a text part to the form.

Synopsis

multipart_form&
text(
    std::string_view name,
    std::string value,
    std::string_view content_type = {});

Exception Safety

Calls to allocate may throw.

Return Value

A reference to this object, for chaining.

Parameters

Name

Description

name

The name of the form field.

value

The contents of the part.

content_type

The value for the Content‐Type header of the part. No header is written when empty.

Created with MrDocs