header::version is unsigned (API Change)

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:27 -07:00
1 parent 8c3cc96a27
commit 798ff25795
5 files changed
+43 -16

No files matched your search

+21 -2
View File
@@ -23,9 +23,9 @@ In this table:
* `f` is a value of type `F`.
* `v` is an integer representing the HTTP version.
* `v` is an `unsigned` value representing the HTTP version.
* `c` is an integer representing the HTTP status-code.
* `c` is an `unsigned` representing the HTTP status-code.
* `m` is a value of type [link beast.ref.beast__http__verb `verb`].
@@ -75,4 +75,23 @@ In this table:
]
]
Exemplar:
```
struct FieldsReader
{
// The type of buffers returned by `get`
using const_buffers_type = implementation-defined;
// Constructor for requests
FieldsReader(F const& f, unsigned version, verb method);
// Constructor for responses
FieldsReader(F const& f, unsigned version, unsigned status);
// Returns the serialized header buffers
const_buffers_type
get();
};
```
[endsect]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 37 KiB