Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GracefulServer ¶ added in v0.0.3
type GracefulServer struct {
Name string
*http.Server
context.Context
logger.Logger
SessionEngine session.Engine
}
GracefulServer combines an HTTP server with a context for graceful shutdown handling.
func NewGracefulServer ¶ added in v0.0.6
func NewGracefulServer(s *http.Server) *GracefulServer
type WrappedWriter ¶ added in v0.0.2
type WrappedWriter struct {
http.ResponseWriter
StatusCode int
}
WrappedWriter wraps an http.ResponseWriter to capture the status code of the response.
func (*WrappedWriter) WriteHeader ¶ added in v0.0.2
func (w *WrappedWriter) WriteHeader(c int)
WriteHeader records the status code and then calls the underlying WriteHeader method. This allows tracking of the response status without altering how the original ResponseWriter behaves.
Click to show internal directories.
Click to hide internal directories.