http09

package
v0.0.0-...-7cb43f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MethodGet0RTT = "GET_0RTT"

MethodGet0RTT allows a GET request to be sent using 0-RTT. Note that 0-RTT data doesn't provide replay protection.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundTripper

type RoundTripper struct {
	TLSClientConfig *tls.Config
	QuicConfig      *quic.Config
	// contains filtered or unexported fields
}

RoundTripper performs HTTP/0.9 roundtrips over QUIC.

func (*RoundTripper) Close

func (r *RoundTripper) Close() error

Close closes the roundtripper.

func (*RoundTripper) RoundTrip

func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip performs a HTTP/0.9 request. It only supports GET requests.

type Server

type Server struct {
	*http.Server

	QuicConfig *quic.Config
	// contains filtered or unexported fields
}

Server is a HTTP/0.9 server listening for QUIC connections.

func (*Server) Close

func (s *Server) Close() error

Close closes the server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe listens and serves HTTP/0.9 over QUIC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL