Documentation
¶
Overview ¶
Package status is middleware for returning status code for requests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
// Base path. Request to this path and sub-paths will be answered with StatusCode
Base string
// Status code to return
StatusCode int
// Request matcher
httpserver.RequestMatcher
}
Rule describes status rewriting rule
type Status ¶
type Status struct {
Rules []httpserver.HandlerConfig
Next httpserver.Handler
}
Status is a middleware to return status code for request
Source Files
¶
- setup.go
- status.go
Click to show internal directories.
Click to hide internal directories.