Module: Wrest
- Defined in:
- lib/wrest/uri.rb,
lib/wrest.rb,
lib/wrest/native.rb,
lib/wrest_no_ext.rb,
lib/wrest/caching.rb,
lib/wrest/version.rb,
lib/wrest/callback.rb,
lib/wrest/multipart.rb,
lib/wrest/components.rb,
lib/wrest/exceptions.rb,
lib/wrest/http_codes.rb,
lib/wrest/cache_proxy.rb,
lib/wrest/http_shared.rb,
lib/wrest/uri/builders.rb,
lib/wrest/uri_template.rb,
lib/wrest/async_request.rb,
lib/wrest/native/response.rb,
lib/wrest/native/redirection.rb,
lib/wrest/components/mutators.rb,
lib/wrest/http_shared/headers.rb,
lib/wrest/components/container.rb,
lib/wrest/components/translators.rb,
lib/wrest/components/mutators/base.rb,
lib/wrest/async_request/thread_pool.rb,
lib/wrest/core_ext/hash/conversions.rb,
lib/wrest/components/translators/txt.rb,
lib/wrest/components/translators/xml.rb,
lib/wrest/components/translators/json.rb,
lib/wrest/core_ext/string/conversions.rb,
lib/wrest/http_shared/standard_tokens.rb,
lib/wrest/async_request/thread_backend.rb,
lib/wrest/http_shared/standard_headers.rb,
lib/wrest/components/container/typecaster.rb,
lib/wrest/hash_with_case_insensitive_access.rb,
lib/wrest/async_request/event_machine_backend.rb,
lib/wrest/components/container/alias_accessors.rb,
lib/wrest/components/translators/content_types.rb,
lib/wrest/components/mutators/camel_to_snake_case.rb,
lib/wrest/components/mutators/xml_mini_type_caster.rb,
lib/wrest/components/mutators/xml_simple_type_caster.rb
Overview
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Defined Under Namespace
Modules: AsyncRequest, Caching, Components, CoreExt, Exceptions, HttpCodes, HttpShared, Multipart, Native Classes: CacheProxy, Callback, HashWithCaseInsensitiveAccess, Uri, UriTemplate
Constant Summary collapse
- Root =
File.dirname(__FILE__)
- Http =
default to using Native libs
Wrest::Native
- NoStringExtensions =
true
- VERSION =
"2.2.0"
- H =
Set up a shorter convenience API for constants
Wrest::HttpShared::StandardHeaders
- T =
Wrest::HttpShared::StandardTokens
Class Method Summary collapse
- .enable_evented_requests! ⇒ Object
- .logger ⇒ Object
- .logger=(logger) ⇒ Object
-
.use_native! ⇒ Object
Switch Wrest to using Net::HTTP.
Class Method Details
.enable_evented_requests! ⇒ Object
38 39 40 |
# File 'lib/wrest.rb', line 38 def self.enable_evented_requests! require "wrest/event_machine_backend" end |
.logger ⇒ Object
34 35 36 |
# File 'lib/wrest.rb', line 34 def self.logger @logger end |
.logger=(logger) ⇒ Object
30 31 32 |
# File 'lib/wrest.rb', line 30 def self.logger=(logger) @logger = logger end |
.use_native! ⇒ Object
Switch Wrest to using Net::HTTP.
43 44 45 |
# File 'lib/wrest.rb', line 43 def self.use_native! silence_warnings{ Wrest.const_set('Http', Wrest::Native) } end |