Versions in this module Expand all Collapse all v0 v0.5.3 Dec 8, 2023 v0.5.2 Nov 26, 2023 Changes in this version + type Application struct + func NewApplication() *Application + func (a *Application) Run() + type ContextCustomizer struct + func NewContextCustomizer() *ContextCustomizer + func (c *ContextCustomizer) CustomizeContext(ctx app.Context) error + type DefaultServer struct + func NewDefaultServer() *DefaultServer + func (s *DefaultServer) Port() int + func (s *DefaultServer) ServeHTTP(writer stdhttp.ResponseWriter, request *stdhttp.Request) + func (s *DefaultServer) ShutDownGracefully(ctx context.Context) error + func (s *DefaultServer) Start() error + func (s *DefaultServer) Stop() error + type Server interface + Port func() int + ShutDownGracefully func(ctx context.Context) error + Start func() error + Stop func() error + type ServerContext struct + HandlerChain http.HandlerChain + func (c *ServerContext) Abort() + func (c *ServerContext) Deadline() (deadline time.Time, ok bool) + func (c *ServerContext) Done() <-chan struct{} + func (c *ServerContext) Err() error + func (c *ServerContext) Invoke(ctx http.Context) + func (c *ServerContext) IsAborted() bool + func (c *ServerContext) IsCompleted() bool + func (c *ServerContext) Parent() *ServerContext + func (c *ServerContext) Request() http.Request + func (c *ServerContext) Reset(req *stdhttp.Request, writer stdhttp.ResponseWriter) + func (c *ServerContext) Response() http.Response + func (c *ServerContext) Value(key any) any + func (c *ServerContext) With(request http.Request, response http.Response) http.Context + func (c *ServerContext) WithRequest(request http.Request) http.Context + func (c *ServerContext) WithResponse(response http.Response) http.Context + func (c *ServerContext) WithValue(key, val any) http.Context + type ServerContextDelegate struct + func (d ServerContextDelegate) Invoke(ctx http.Context) + type ServerProperties struct + Port int + type ServerRequest struct + func (r *ServerRequest) Context() http.Context + func (r *ServerRequest) Cookie(name string) (*http.Cookie, bool) + func (r *ServerRequest) Cookies() []*http.Cookie + func (r *ServerRequest) Header(name string) (string, bool) + func (r *ServerRequest) HeaderNames() []string + func (r *ServerRequest) Headers(name string) []string + func (r *ServerRequest) IsSecure() bool + func (r *ServerRequest) Method() http.Method + func (r *ServerRequest) Path() string + func (r *ServerRequest) QueryParameter(name string) (string, bool) + func (r *ServerRequest) QueryParameterNames() []string + func (r *ServerRequest) QueryParameters(name string) []string + func (r *ServerRequest) QueryString() string + func (r *ServerRequest) Reader() io.Reader + func (r *ServerRequest) Scheme() string + func (r *ServerRequest) WithReader(reader io.Reader) http.Request + type ServerResponse struct + func (r *ServerResponse) AddCookie(cookie *http.Cookie) + func (r *ServerResponse) AddHeader(name string, value string) + func (r *ServerResponse) CharacterEncoding() string + func (r *ServerResponse) ContentLength() int + func (r *ServerResponse) ContentType() string + func (r *ServerResponse) Context() http.Context + func (r *ServerResponse) DeleteHeader(name string) + func (r *ServerResponse) Flush() + func (r *ServerResponse) Header(name string) string + func (r *ServerResponse) HeaderNames() []string + func (r *ServerResponse) Headers(name string) []string + func (r *ServerResponse) IsCommitted() bool + func (r *ServerResponse) Reset() + func (r *ServerResponse) SetCharacterEncoding(charset string) + func (r *ServerResponse) SetContentLength(len int) + func (r *ServerResponse) SetContentType(contentType string) + func (r *ServerResponse) SetHeader(name string, value string) + func (r *ServerResponse) SetStatus(status http.Status) + func (r *ServerResponse) Status() http.Status + func (r *ServerResponse) WithWriter(writer io.Writer) http.Response + func (r *ServerResponse) Writer() io.Writer + type ServerStartStopLifecycle struct + func (l *ServerStartStopLifecycle) IsRunning() bool + func (l *ServerStartStopLifecycle) Start() error + func (l *ServerStartStopLifecycle) Stop() error