Documentation ¶
Index ¶
- func CleanHeadersForRaven(r *http.Request)
- func CleanUpProcessGroup(cmd *exec.Cmd)
- func ExitStatus(err error) (int, bool)
- func Fail500(w http.ResponseWriter, r *http.Request, err error)
- func HTTPError(w http.ResponseWriter, r *http.Request, error string, code int)
- func HeaderClone(h http.Header) http.Header
- func LogError(r *http.Request, err error)
- func OpenFile(path string) (file *os.File, fi os.FileInfo, err error)
- func ServiceUnavailable(w http.ResponseWriter, r *http.Request, err error)
- func SetCustomResponseLogger(writer io.Writer)
- func SetNoCacheHeaders(header http.Header)
- func TooManyRequests(w http.ResponseWriter, r *http.Request, err error)
- func URLMustParse(s string) *url.URL
- type LoggingResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanHeadersForRaven ¶ added in v0.8.3
func CleanUpProcessGroup ¶ added in v0.6.1
func ExitStatus ¶ added in v0.6.1
func ServiceUnavailable ¶ added in v0.8.3
func ServiceUnavailable(w http.ResponseWriter, r *http.Request, err error)
func SetCustomResponseLogger ¶ added in v1.0.0
func SetNoCacheHeaders ¶
func TooManyRequests ¶ added in v0.8.3
func TooManyRequests(w http.ResponseWriter, r *http.Request, err error)
func URLMustParse ¶
Types ¶
type LoggingResponseWriter ¶
type LoggingResponseWriter struct {
// contains filtered or unexported fields
}
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(rw http.ResponseWriter) LoggingResponseWriter
func (*LoggingResponseWriter) Header ¶
func (l *LoggingResponseWriter) Header() http.Header
func (*LoggingResponseWriter) Log ¶
func (l *LoggingResponseWriter) Log(r *http.Request)
func (*LoggingResponseWriter) Write ¶
func (l *LoggingResponseWriter) Write(data []byte) (n int, err error)
func (*LoggingResponseWriter) WriteHeader ¶
func (l *LoggingResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.