mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 05:44:38 +02:00
basic_fields returns const values
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Version 131:
|
||||
|
||||
* basic_fields returns const values
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 130:
|
||||
|
||||
* Tidy up fallthrough warning
|
||||
|
@@ -93,15 +93,15 @@ public:
|
||||
value_type& operator=(value_type const&) = delete;
|
||||
|
||||
/// Returns the field enum, which can be @ref field::unknown
|
||||
field
|
||||
field const
|
||||
name() const;
|
||||
|
||||
/// Returns the field name as a string
|
||||
string_view
|
||||
string_view const
|
||||
name_string() const;
|
||||
|
||||
/// Returns the value of the field
|
||||
string_view
|
||||
string_view const
|
||||
value() const;
|
||||
};
|
||||
|
||||
@@ -280,7 +280,7 @@ public:
|
||||
|
||||
@throws std::out_of_range if the field is not found.
|
||||
*/
|
||||
string_view
|
||||
string_view const
|
||||
at(field name) const;
|
||||
|
||||
/** Returns the value for a field, or throws an exception.
|
||||
@@ -294,7 +294,7 @@ public:
|
||||
|
||||
@throws std::out_of_range if the field is not found.
|
||||
*/
|
||||
string_view
|
||||
string_view const
|
||||
at(string_view name) const;
|
||||
|
||||
/** Returns the value for a field, or `""` if it does not exist.
|
||||
@@ -304,7 +304,7 @@ public:
|
||||
|
||||
@param name The name of the field.
|
||||
*/
|
||||
string_view
|
||||
string_view const
|
||||
operator[](field name) const;
|
||||
|
||||
/** Returns the value for a case-insensitive matching header, or `""` if it does not exist.
|
||||
@@ -314,7 +314,7 @@ public:
|
||||
|
||||
@param name The name of the field.
|
||||
*/
|
||||
string_view
|
||||
string_view const
|
||||
operator[](string_view name) const;
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
@@ -291,7 +291,7 @@ value_type(field name,
|
||||
|
||||
template<class Allocator>
|
||||
inline
|
||||
field
|
||||
field const
|
||||
basic_fields<Allocator>::
|
||||
value_type::
|
||||
name() const
|
||||
@@ -301,7 +301,7 @@ name() const
|
||||
|
||||
template<class Allocator>
|
||||
inline
|
||||
string_view
|
||||
string_view const
|
||||
basic_fields<Allocator>::
|
||||
value_type::
|
||||
name_string() const
|
||||
@@ -313,7 +313,7 @@ name_string() const
|
||||
|
||||
template<class Allocator>
|
||||
inline
|
||||
string_view
|
||||
string_view const
|
||||
basic_fields<Allocator>::
|
||||
value_type::
|
||||
value() const
|
||||
@@ -465,7 +465,7 @@ operator=(basic_fields<OtherAlloc> const& other) ->
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
template<class Allocator>
|
||||
string_view
|
||||
string_view const
|
||||
basic_fields<Allocator>::
|
||||
at(field name) const
|
||||
{
|
||||
@@ -478,7 +478,7 @@ at(field name) const
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
string_view
|
||||
string_view const
|
||||
basic_fields<Allocator>::
|
||||
at(string_view name) const
|
||||
{
|
||||
@@ -490,7 +490,7 @@ at(string_view name) const
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
string_view
|
||||
string_view const
|
||||
basic_fields<Allocator>::
|
||||
operator[](field name) const
|
||||
{
|
||||
@@ -502,7 +502,7 @@ operator[](field name) const
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
string_view
|
||||
string_view const
|
||||
basic_fields<Allocator>::
|
||||
operator[](string_view name) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user