http

package
v4.2.6-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextMiddlewareHandler

func ContextMiddlewareHandler(modifier IncomingContextModifier) func(http.Handler) http.Handler

func New

func New(ctx context.Context) server.Server

Types

type IncomingContextModifier

type IncomingContextModifier func(ctx context.Context) (context.Context, bool, error)

IncomingContextModifier modifies context and returns a new context, true if context was modified, or an error

type Opener added in v4.0.1

type Opener struct{}

func (*Opener) OpenURL added in v4.0.1

func (o *Opener) OpenURL(ctx context.Context, u *url.URL) (server.Server, error)

type Server

type Server struct {
	net.Listener
	*server.ListableMux
	*http.Server
	// contains filtered or unexported fields
}

func (*Server) As

func (s *Server) As(i interface{}) bool

func (*Server) Clone added in v4.2.2

func (s *Server) Clone() interface{}

func (*Server) Endpoints

func (s *Server) Endpoints() []string

func (*Server) ID

func (s *Server) ID() string

func (*Server) Metadata

func (s *Server) Metadata() map[string]string

func (*Server) Name

func (s *Server) Name() string

func (*Server) RawServe added in v4.0.1

func (s *Server) RawServe(opts *server.ServeOptions) (ii []registry.Item, e error)

func (*Server) SetMetadata added in v4.0.6

func (s *Server) SetMetadata(meta map[string]string)

func (*Server) Stop

func (s *Server) Stop() error

func (*Server) Type

func (s *Server) Type() server.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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