Module: HttpStreamingClient

Defined in:
lib/http_streaming_client.rb,
lib/http_streaming_client/oauth.rb,
lib/http_streaming_client/client.rb,
lib/http_streaming_client/errors.rb,
lib/http_streaming_client/railtie.rb,
lib/http_streaming_client/version.rb,
lib/http_streaming_client/oauth/base.rb,
lib/http_streaming_client/oauth/adobe.rb,
lib/http_streaming_client/custom_logger.rb,
lib/http_streaming_client/decoders/gzip.rb,
lib/http_streaming_client/oauth/twitter.rb,
lib/http_streaming_client/decoders/chunked.rb

Overview

http_streaming_client

Ruby HTTP client with support for HTTP 1.1 streaming, GZIP compressed streams, and chunked transfer encoding. Includes extensible OAuth support for the Adobe Analytics Firehose and Twitter Streaming APIs.

David Tompkins – 11/8/2013 tompkins@adobe_dot_com

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

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: Decoders, Oauth Classes: BasicLogFormatter, Client, ColoredLogFormatter, CustomLoggerInternal, DecoderError, HttpError, HttpTimeOut, InvalidContentType, InvalidRedirect, Railties, ReconnectRequest

Constant Summary collapse

VERSION =
"0.9.6"

Class Method Summary collapse

Class Method Details

.loggerObject



95
96
97
98
# File 'lib/http_streaming_client/custom_logger.rb', line 95

def self.logger
  return @custom_logger_internal unless @custom_logger_internal.nil?
  return @custom_logger_internal = CustomLoggerInternal.new
end

.logger=(logger) ⇒ Object



100
101
102
# File 'lib/http_streaming_client/custom_logger.rb', line 100

def self.logger=(logger)
  @custom_logger_internal = logger
end