projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
buildd: fix lsbmajdistrelease calls
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
aviator
/
feature
/
faraday
/
request
/
token_authentication.rb
1
module Faraday
2
class Request::TokenAuthentication < Request.load_middleware(:authorization)
3
# Public
4
def self.header(token, options = nil)
5
options ||= {}
6
options[:token] = token
7
super(:Token, options)
8
end
9
10
def initialize(app, token, options = nil)
11
super(app, token, options)
12
end
13
end
14
end
15