:nocov:
Public Instance methods
bearer_token()
Return the bearer token for the request if there is one in the authorization HTTP header.
[show source]
# File lib/roda/plugins/bearer_token.rb 18 def bearer_token 19 if (auth = @env["HTTP_AUTHORIZATION"]) && auth.send(METHOD, /\Abearer /i) 20 auth[7, 100000000] 21 end 22 end