Refactor header status, reason, and target (API Change):

* header::result is a family of functions to replace header::status

* header interface now uses status enum and also ints

* reason-phrase is no longer stored unless the user explicitly
  requests it.

* When serializing, the standard reason is used for the
  corresponding status code unless the user has changed it.
This commit is contained in:
Vinnie Falco committed 2017-06-04 17:26:20 -07:00
1 parent 60f044aff0
commit e67c0abe79
31 files changed
+588 -220

No files matched your search

+2 -2
View File
@@ -62,11 +62,11 @@ public:
}
void
on_response(int status_,
on_response(int code,
string_view reason_,
int version_, error_code& ec)
{
status = status_;
status = code;
reason = std::string(
reason_.data(), reason_.size());
version = version_;