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