class BaTesterWithCustomParameters::HttpCallBack
HttpCallBack
allows defining callables for pre and post API calls.
Public Instance Methods
on_after_response(_http_response)
click to toggle source
A controller will call this method after making an HTTP Request. @param [HttpResponse] The HttpReponse of the API call.
# File lib/ba_tester_with_custom_parameters/http/http_call_back.rb, line 19 def on_after_response(_http_response) raise NotImplementedError, 'This method needs to be implemented in a child class.' end
on_before_request(_http_request)
click to toggle source
A controller will call this method before making an HTTP Request. @param [HttpRequest] The HttpRequest
object which the HttpClient
will execute.
# File lib/ba_tester_with_custom_parameters/http/http_call_back.rb, line 12 def on_before_request(_http_request) raise NotImplementedError, 'This method needs to be implemented in a child class.' end