http

package
v1.164.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriter

type ResponseWriter struct {
	StatusCode int

	http.ResponseWriter
}

ResponseWriter with status for http.

func (*ResponseWriter) WriteHeader

func (r *ResponseWriter) WriteHeader(statusCode int)

WriteHeader sends an HTTP response header with the provided status code.

type Server added in v1.164.0

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

Server for HTTP.

func NewServer added in v1.164.0

func NewServer(server *http.Server, listener net.Listener, certFile, keyFile string) *Server

NewServer for HTTP.

func (*Server) Serve added in v1.164.0

func (s *Server) Serve() error

Serve the underlying server.

func (*Server) Shutdown added in v1.164.0

func (s *Server) Shutdown(ctx context.Context) error

Shutdown the underlying server.

Jump to

Keyboard shortcuts

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