Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyReaderHandler ¶
BodyReaderHandler reads body so it will appear in request log.
func NotifyHandler ¶
func NotifyHandler(notify NotifyFunc, next http.Handler) http.Handler
Types ¶
type NotifyFunc ¶
type Option ¶
type Option func(*options)
func NotifyStartedFunc ¶
func NotifyStartedFunc(f func()) Option
type Request ¶
type Request struct {
Method string `json:"method"`
Proto string `json:"proto"`
URL string `json:"url"`
Host string `json:"host"`
Headers http.Header `json:"headers"`
Body string `json:"body"`
}
Request represents HTTP request metadata for events.
Click to show internal directories.
Click to hide internal directories.