http

package
v0.0.0-...-2678282 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainHandler

type DomainHandler map[string]http.Handler

func (DomainHandler) ServeHTTP

func (d DomainHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type OASSchemaExampleHandler

type OASSchemaExampleHandler struct {
	Handlers       []ports.RequestHandler
	FallbackStatus int
	FallbackValues [][]byte
}

func (OASSchemaExampleHandler) ServeHTTP

func (o OASSchemaExampleHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request)

type OASSchemaMockHandler

type OASSchemaMockHandler struct {
	MockGenerator *renderer.MockGenerator
	Schema        any
	Status        int
}

func (OASSchemaMockHandler) ServeHTTP

func (h OASSchemaMockHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request)

type RulesHandler

type RulesHandler struct {
	Handlers []ports.RequestHandler
}

func (RulesHandler) ServeHTTP

func (r RulesHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type RulesRequestHandler

type RulesRequestHandler struct {
	Matcher          ports.RequestMatcher
	ResponseProvider ports.ResponseProvider
}

func (RulesRequestHandler) Handle

func (r RulesRequestHandler) Handle(writer http.ResponseWriter, ir *domain.IncomingRequest) (handled bool)

Jump to

Keyboard shortcuts

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