Sha256: 390709f1885abb86b663749eb47f3da4cee02d18499de5bc76b85478871bbc81
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
require 'faraday' class Faraday::Request::OSToken def initialize(app, token) @app = app @token = token end def call(env) env[:request_headers]['X-Auth-Token'] = @token @app.call(env) end end Faraday::Request.register_middleware os_token: -> { Faraday::Request::OSToken }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yao-0.0.2.rc3 | lib/yao/faraday_middlewares.rb |