Beast Logo

PrevUpHomeNext

http::is_upgrade

Returns true if the HTTP/1 message indicates an Upgrade request or response.

template<
    bool isRequest,
    class Fields>
bool
is_upgrade(
    header< isRequest, Fields > const& msg);

Undefined behavior if version is greater than 11.

Requirements

Header: beast/http/message.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext