Sha256: e8cf70b6b8c283dea42d2083947b7a3d996b2ed8779eb58a52c978147fcbf9e5

Contents?: true

Size: 831 Bytes

Versions: 49

Compression:

Stored size: 831 Bytes

Contents

# bandwidth
#
# This file was automatically generated by APIMATIC v2.0
# ( https://apimatic.io ).

module Bandwidth
  # HttpCallBack allows defining callables for pre and post API calls.
  class HttpCallBack
    # A controller will call this method before making an HTTP Request.
    # @param [HttpRequest] The HttpRequest object which the HttpClient
    # will execute.
    def on_before_request(_http_request)
      raise NotImplementedError, 'This method needs
        to be implemented in a child class.'
    end

    # A controller will call this method after making an HTTP Request.
    # @param [HttpResponse] The HttpReponse of the API call.
    def on_after_response(_http_response)
      raise NotImplementedError, 'This method needs
        to be implemented in a child class.'
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
bandwidth-sdk-10.5.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-10.4.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-10.3.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-10.2.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-10.1.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-10.0.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.4.1 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.4.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.3.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.2.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.1.2 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.1.1 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.1.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-9.0.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-8.0.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-7.1.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-7.0.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-6.2.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-6.1.0 lib/bandwidth/http/http_call_back.rb
bandwidth-sdk-6.0.0 lib/bandwidth/http/http_call_back.rb