Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents HTTP headers, acts like a map.
Warning
This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at http://casablanca.codeplex.com/documentation.
class http_headers;
Members
Public Typedefs
Name |
Description |
---|---|
allocator_type |
|
const_iterator |
|
const_pointer |
|
const_reference |
|
const_reverse_iterator |
|
difference_type |
|
iterator |
|
key_compare |
|
key_type |
STL-style typedefs |
pointer |
|
reference |
|
reverse_iterator |
|
size_type |
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs an empty set of HTTP headers. |
Public Methods
Name |
Description |
---|---|
Overloaded. Adds a header field using the '<<' operator. |
|
Overloaded. Returns an iterator refering to the first header field. |
|
Gets the cache control header of the message. |
|
Gets the content length of the message. |
|
Gets the content type of the message. |
|
Gets the date header of the message. |
|
Tests to see if there are any header fields. |
|
Overloaded. Returns an iterator referring to the past-the-end header field. |
|
Overloaded. Checks if a header field exists with given name and returns an iterator if found. Otherwise and iterator to end is returned. |
|
Checks if there is a header with the given key. |
|
Attempts to match a header field with the given name using the '>>' operator. |
|
Removes a header field. |
|
Sets the cache control header of the message. |
|
Sets the content length of the message. |
|
Sets the content type of the message. |
|
Sets the date header of the message. |
|
Returns the number of header fields. |
Public Operators
Name |
Description |
---|---|
Returns a reference to header field with given name, if there is no header field one is inserted. |
|
Overloaded. Assignment operator. |
Requirements
Header: http_msg.h
Namespace: web::http