Module: Linzer::HTTP
- Extended by:
- HTTP
- Included in:
- HTTP
- Defined in:
- lib/linzer/http.rb,
lib/linzer/http/bootstrap.rb,
lib/linzer/http/signature_feature.rb
Defined Under Namespace
Modules: Bootstrap
Classes: SignatureFeature
Class Method Summary
collapse
Class Method Details
.known_http_methods ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/linzer/http.rb', line 9
def self.known_http_methods
Net::HTTP
.constants
.map { |const| Net::HTTP.const_get(const) }
.select { |klass| klass.is_a?(Class) && klass.const_defined?(:METHOD) }
.map { |klass| klass::METHOD }
.freeze
end
|
.register_adapter ⇒ Object
8
9
10
11
12
|
# File 'lib/linzer/http/signature_feature.rb', line 8
def register_adapter
request_class = ::HTTP::Request
adapter_class = Linzer::Message::Adapter::HTTPGem::Request
Linzer::Message.register_adapter(request_class, adapter_class)
end
|