Module: EmmyHttp
- Extended by:
- EmmyHttp
- Included in:
- EmmyHttp
- Defined in:
- lib/emmy_http.rb,
lib/emmy_http/model.rb,
lib/emmy_http/utils.rb,
lib/emmy_http/adapter.rb,
lib/emmy_http/request.rb,
lib/emmy_http/timeout.rb,
lib/emmy_http/version.rb,
lib/emmy_http/response.rb,
lib/emmy_http/operation.rb,
lib/emmy_http/client/ssl.rb,
lib/emmy_http/client/proxy.rb,
lib/emmy_http/client/timeouts.rb,
lib/emmy_http/server/application.rb,
lib/emmy_http/server/configuration.rb
Defined Under Namespace
Modules: Adapter, Model, Utils
Classes: Application, Configuration, ConnectionError, DecoderError, EncoderError, HttpError, Operation, ParserError, Proxy, Request, RequestError, Response, SSL, Timeout, TimeoutError, Timeouts
Constant Summary
collapse
- HTTP_METHODS =
%w(get head delete put post patch options)
- VERSION =
"0.2.9"
Instance Method Summary
collapse
Instance Method Details
#request(*a) ⇒ Object
35
36
37
|
# File 'lib/emmy_http.rb', line 35
def request(*a)
EmmyHttp::Request.new(*a).tap { |req| yield(req) if block_given? }
end
|
#request!(*a) ⇒ Object
39
40
41
|
# File 'lib/emmy_http.rb', line 39
def request!(*a)
request(*a, &b).operation
end
|