http09

package
v0.0.0-...-4c9caed Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 13 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.

View Source
const NextProto = "hq-interop"

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 {
	Handler *http.ServeMux
}

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

func (*Server) ServeListener

func (s *Server) ServeListener(ln *quic.EarlyListener) error

ServeListener serves HTTP/0.9 on all connections accepted from a QUIC listener.

Jump to

Keyboard shortcuts

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