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

Version Path
openid_connect-0.4.1 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.4.0 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.7 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.6 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.5 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.4 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.3 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.2 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.1 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.3.0 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.4 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.3 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.2 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.1 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.0 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.0.alpha3 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.0.alpha2 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.2.0.alpha lib/openid_connect/debugger/request_filter.rb
openid_connect-0.1.5 lib/openid_connect/debugger/request_filter.rb
openid_connect-0.1.4 lib/openid_connect/debugger/request_filter.rb