Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion proxy/http2/HTTP2.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,17 @@ struct Http2FrameHeader {

// [RFC 7540] 5.4. Error Handling
struct Http2Error {
Http2Error(const Http2ErrorClass error_class = HTTP2_ERROR_CLASS_NONE, const Http2ErrorCode error_code = HTTP2_ERROR_NO_ERROR)
Http2Error(const Http2ErrorClass error_class = HTTP2_ERROR_CLASS_NONE, const Http2ErrorCode error_code = HTTP2_ERROR_NO_ERROR,
const char *err_msg = NULL)
{
cls = error_class;
code = error_code;
msg = err_msg;
};

Http2ErrorClass cls;
Http2ErrorCode code;
const char *msg;
};

// [RFC 7540] 6.5.1. SETTINGS Format
Expand Down
Loading