http09

package
v0.7.1-0...-adcdeff Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

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