MCPcopy Create free account
hub / github.com/PuerkitoBio/fetchbot / Response

Method Response

handler.go:121–123  ·  view source on GitHub ↗

Response initializes an entry for a Response Handler based on various criteria. The Response Handler is not registered until Handle is called.

()

Source from the content-addressed store, hash-verified

119// Response initializes an entry for a Response Handler based on various criteria.
120// The Response Handler is not registered until Handle is called.
121func (mux *Mux) Response() *ResponseMatcher {
122 return &ResponseMatcher{mux: mux}
123}
124
125// A ResponseMatcher holds the criteria for a response Handler.
126type ResponseMatcher struct {

Callers 2

TestMuxFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMuxFunction · 0.76