http09

package
v0.0.6-firefox.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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