Sha256: 0c3e44414aafdf1469650e1213f39f78b75b1613325e10de173df3166bf95358
Contents?: true
Size: 738 Bytes
Versions: 21
Compression:
Stored size: 738 Bytes
Contents
module Rack module OAuth2 module Debugger class RequestFilter # Callback called in HTTPClient (before sending a request) # request:: HTTP::Message def filter_request(request) started = "======= [Rack::OAuth2] HTTP REQUEST STARTED =======" OAuth2.logger.info [started, request.dump].join("\n") end # Callback called in HTTPClient (after received a response) # request:: HTTP::Message # response:: HTTP::Message def filter_response(request, response) finished = "======= [Rack::OAuth2] HTTP REQUEST FINISHED =======" OAuth2.logger.info ['-' * 50, response.dump, finished].join("\n") end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems