http

package
v0.0.0-...-a41176a Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirector

type Redirector struct {
	// contains filtered or unexported fields
}

func NewRedirector

func NewRedirector(log *zap.Logger, status chan error) (*Redirector, error)

func (*Redirector) Launch

func (s *Redirector) Launch() error

func (*Redirector) Stop

func (s *Redirector) Stop()

type ResponseWriterProxy

type ResponseWriterProxy struct {
	// contains filtered or unexported fields
}

func NewResponseWriterProxy

func NewResponseWriterProxy(w http.ResponseWriter) *ResponseWriterProxy

func (*ResponseWriterProxy) Buffer

func (rwp *ResponseWriterProxy) Buffer() *bytes.Buffer

Buffer provides access to an underlying buffer for a manual control

func (*ResponseWriterProxy) Flush

func (rwp *ResponseWriterProxy) Flush() error

func (*ResponseWriterProxy) Header

func (rwp *ResponseWriterProxy) Header() http.Header

func (*ResponseWriterProxy) Reset

func (rwp *ResponseWriterProxy) Reset()

func (*ResponseWriterProxy) Write

func (rwp *ResponseWriterProxy) Write(p []byte) (n int, err error)

func (*ResponseWriterProxy) WriteHeader

func (rwp *ResponseWriterProxy) WriteHeader(statusCode int)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(log *zap.Logger, web http.Handler, status chan error, https bool) (*Server, error)

func (*Server) Launch

func (s *Server) Launch() error

func (*Server) Stop

func (s *Server) Stop()

type Server3

type Server3 struct {
	// contains filtered or unexported fields
}

func NewServer3

func NewServer3(web http.Handler, status chan error) (*Server3, error)

func (*Server3) Launch

func (s *Server3) Launch() error

func (*Server3) Stop

func (s *Server3) Stop()

Jump to

Keyboard shortcuts

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