Protocols is a set of HTTP protocols. The zero value is an empty set of protocols.

The supported protocols are:

  - HTTP1 is the HTTP/1.0 and HTTP/1.1 protocols.
HTTP1 is supported on both unsecured TCP and secured TLS connections.

- HTTP2 is the HTTP/2 protcol over a TLS connection.

- UnencryptedHTTP2 is the HTTP/2 protocol over an unsecured TCP connection.

Hierarchy

  • Protocols

Methods

  • HTTP1 reports whether p includes HTTP/1.

    Returns boolean

  • HTTP2 reports whether p includes HTTP/2.

    Returns boolean

  • SetHTTP1 adds or removes HTTP/1 from p.

    Parameters

    • ok: boolean

    Returns void

  • SetHTTP2 adds or removes HTTP/2 from p.

    Parameters

    • ok: boolean

    Returns void

  • SetUnencryptedHTTP2 adds or removes unencrypted HTTP/2 from p.

    Parameters

    • ok: boolean

    Returns void

  • UnencryptedHTTP2 reports whether p includes unencrypted HTTP/2.

    Returns boolean

Generated using TypeDoc