class io.WebSocketHandshakeHeaders

class WebSocketHandshakeHeaders {
    // fields

    size_t readonly m_nameCount;

    // properties

    string_t const indexed property m_name(size_t i);
    string_t const indexed property m_value(size_t i);
    size_t const indexed property m_valueCount(size_t i);

    // construction

    construct();
    destruct();

    // methods

    size_t findName(string_t name) const;
    string_t findValue(string_t name) const;

    string_t getValue(
        size_t nameIdx,
        size_t valueIdx
    ) const;

    void clear();

    size_t add(
        string_t name,
        string_t value
    );

    string_t format(
        string_t delimiter = ": ",
        string_t eol = "\r\n"
    ) const;
};