en	FieldsWriter

en	A [*FieldsWriter] provides a algorithm to obtain a sequence of buffers representing the complete serialized HTTP/1 header for a set of fields. The implementation constructs an instance of this type when needed, and calls into it once to retrieve the buffers.

en	Associated Types

en	* __FieldsWriter__

en	Requirements

en	These requirements may undergo non-backward compatible

en	In this table:

en	* `W` denotes a type that meets the requirements of [*FieldsWriter]. * `F` denotes a __Fields__ where

en	* `a` is a value of type `W`. * `f` is a value of type `F`. * `v` is an `unsigned` value representing the HTTP version. * `c` is an `unsigned` representing the HTTP status-code. * `m` is a value of type [link beast.ref.boost__beast__http__verb `verb`].

en	Valid expressions

en	expression

en	type

en	semantics, pre/post-conditions

en	`W::const_buffers_type`

en	A type which meets the requirements of __ConstBufferSequence__. This is the type of buffer returned by `W::get`.

en	`W{f,v,m}`

en	The implementation calls this constructor to indicate that the fields being serialized form part of an HTTP request. The lifetime of `f` is guaranteed to end no earlier than after the `W` is destroyed.

en	`W{f,v,c}`

en	The implementation calls this constructor to indicate that the fields being serialized form part of an HTTP response. The lifetime of `f` is guaranteed to end no earlier than after the `W` is destroyed.

en	`W{f}`

en	The implementation calls this constructor to indicate that the fields being serialized form part of a chunked encoding final-chunk trailer. The lifetime of `f` is guaranteed to end no earlier than after the `W` is destroyed.

en	`a.get()`

en	Called once after construction, this function returns a constant buffer sequence containing the serialized representation of the HTTP request or response including the final carriage return linefeed sequence (`"\r\n"`). Copies may be made of the returned sequence, but the underlying memory is still owned by the writer. The implementation will destroy all copies of the buffer sequence before destroying `a`.

en	Exemplar

en	Models

en	* [link beast.ref.boost__beast__http__basic_fields.writer `basic_fields::writer`]