Beast Logo

PrevUpHomeNext
websocket::close_reason::close_reason

Default constructor.

close_reason();

Construct from a code.

close_reason(
    std::uint16_t code_);

Construct from a reason string. code is close_code::normal.

close_reason(
    string_view s);

Construct from a reason string literal. code is close_code::normal.

close_reason(
    char const* s);

Construct from a close code and reason string.

close_reason(
    close_code code_,
    string_view s);

PrevUpHomeNext