Versions in this module Expand all Collapse all v1 v1.13.0 Sep 13, 2024 Changes in this version + const DefaultHealthPath + type AccessControl struct + func NewAccessControl(protected http.Handler, list accesscontrol.List) *AccessControl + func (a *AccessControl) Child() http.Handler + func (a *AccessControl) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (a *AccessControl) String() string + type BodyLimit interface + BufferOptions func() buffer.Option + RequestLimit func() int64 + type Endpoint struct + func NewEndpoint(opts *EndpointOptions, log *logrus.Entry, modifier []hcl.Body) *Endpoint + func (e *Endpoint) BodyContext() hcl.Body + func (e *Endpoint) BufferOptions() buffer.Option + func (e *Endpoint) RequestLimit() int64 + func (e *Endpoint) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (e *Endpoint) String() string + type EndpointOptions struct + APIName string + BufferOpts buffer.Option + Context *hclsyntax.Body + ErrorHandler http.Handler + ErrorTemplate *errors.Template + IsErrorHandler bool + IsJob bool + Items sequence.List + LogHandlerKind string + LogPattern string + Producers map[string]producer.Roundtrip + Redirect *producer.Redirect + ReqBodyLimit int64 + Response *producer.Response + SendServerTimings bool + ServerOpts *server.Options + type Error struct + func NewErrorHandler(kindsHandler map[string]http.Handler, errTpl *errors.Template) *Error + func (e *Error) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type File struct + func NewFile(docRoot, basePath string, preferFn PreferSPAfn, errorTpl *errors.Template, ...) (*File, error) + func (f *File) HasResponse(req *http.Request) bool + func (f *File) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (f *File) String() string + type Health struct + func NewHealthCheck(path string, shutdownCh chan struct{}) *Health + func (h *Health) ServeHTTP(rw http.ResponseWriter, _ *http.Request) + func (h *Health) String() string + type PreferSPAfn func(string) bool + func NewPreferSpaFn(bootstrapFiles []string, docRoot string) PreferSPAfn + type Proxy struct + func NewProxy(backend http.RoundTripper, ctx *hclsyntax.Body, allowWS bool, ...) *Proxy + func (p *Proxy) RoundTrip(req *http.Request) (*http.Response, error) + type ResultPanic struct + func (r ResultPanic) Error() string + type Spa struct + func NewSpa(ctx *hcl.EvalContext, config *config.Spa, srvOpts *server.Options, ...) (*Spa, error) + func (s *Spa) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (s *Spa) String() string