// Handler returns the 'wrapper' handler.
Handler returns the 'wrapper' handler.
// Handler returns the ' wrapper ' handler .
func (h *HandlerWrapper) Handler() common.HTTPRequestHandler {
	return func(w http.ResponseWriter, req *http.Request) {
		if !h.verifier.Verify(req) {
			h.writeResponse(w, http.StatusUnauthorized, []byte(unauthorizedResponse))
			return
		}
		h.handleRequest(w, req)
	}
}
func ( h * HandlerWrapper ) Handler ( ) common . HTTPRequestHandler { return func ( w http . ResponseWriter , req * http . Request ) { if ! h . verifier . Verify ( req ) { h . writeResponse ( w , http . StatusUnauthorized , [ ] byte ( unauthorizedResponse ) ) return } h . handleRequest ( w , req ) } }
Handler returns the 'wrapper' handler.
Handler returns the ' wrapper ' handler .