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