static/jsvm/interfaces/http.Protocols.html
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.Copy
http1http2setHTTP1setHTTP2setUnencryptedHTTP2stringunencryptedHTTP2
HTTP1 reports whether p includes HTTP/1.
HTTP2 reports whether p includes HTTP/2.
SetHTTP1 adds or removes HTTP/1 from p.
SetHTTP2 adds or removes HTTP/2 from p.
SetUnencryptedHTTP2 adds or removes unencrypted HTTP/2 from p.
UnencryptedHTTP2 reports whether p includes unencrypted HTTP/2.
OSLightDark
Generated using TypeDoc