Sha256: f1bbf1e8e88e80812a8b54c33206263168881e4963cbf8cbff3bd1c227426243
Contents?: true
Size: 707 Bytes
Versions: 38
Compression:
Stored size: 707 Bytes
Contents
module OpenIDConnect module Debugger class RequestFilter # Callback called in HTTPClient (before sending a request) # request:: HTTP::Message def filter_request(request) started = "======= [OpenIDConnect] HTTP REQUEST STARTED =======" OpenIDConnect.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 = "======= [OpenIDConnect] HTTP REQUEST FINISHED =======" OpenIDConnect.logger.info ['-' * 50, response.dump, finished].join("\n") end end end end
Version data entries
38 entries across 38 versions & 1 rubygems