(h http.Handler)
| 53 | } |
| 54 | |
| 55 | func WithHandler(h http.Handler) Option { |
| 56 | return func(s *Server) *Server { |
| 57 | s.handler = h |
| 58 | return s |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func WithResponse(resp []byte) Option { |
| 63 | return func(s *Server) *Server { |
nothing calls this directly
no outgoing calls
no test coverage detected