Files
boost_beast/doc/concept/Field.qbk
T

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2016-05-11 08:36:29 -04:00
[/
2017-02-06 20:07:03 -05:00
Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
2016-05-11 08:36:29 -04:00
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
]
2017-06-04 17:25:55 -07:00
[section:Field Field]
2016-05-11 08:36:29 -04:00
2017-05-28 09:05:29 -07:00
A [*Field] represents a single HTTP header field/value pair.
2016-05-11 08:36:29 -04:00
In this table:
2017-05-28 09:05:29 -07:00
* `X` denotes a type meeting the requirements of [*Field].
2016-05-11 08:36:29 -04:00
* `a` denotes a value of type `X`.
[table Field requirements
2017-05-28 09:05:29 -07:00
[[expression][type][semantics, pre/post-conditions]]
2016-05-11 08:36:29 -04:00
[
[`a.name()`]
[`boost::string_ref`]
[
This function returns a value implicitly convertible to
2016-05-18 12:30:15 -04:00
`boost::string_ref` containing the case-insensitive field
2016-05-11 08:36:29 -04:00
name, without leading or trailing white space.
]
]
[
[`a.value()`]
[`boost::string_ref`]
[
This function returns a value implicitly convertible to
`boost::string_ref` containing the value for the field. The
value is considered canonical if there is no leading or
trailing whitespace.
]
]
]
[endsect]