# File lib/rack/oauth2/access_token/authenticator.rb, line 5 def initialize(token) @token = token end
Callback called in HTTPClient (before sending a request)
HTTP::Message
# File lib/rack/oauth2/access_token/authenticator.rb, line 11 def filter_request(request) @token.authenticate(request) end
Callback called in HTTPClient (after received a response)
HTTP::Message
HTTP::Message
# File lib/rack/oauth2/access_token/authenticator.rb, line 18 def filter_response(response, request) # nothing to do end