Class: Bixby::HttpChannel

Inherits:
APIChannel show all
Defined in:
lib/bixby-common/api/http_channel.rb

Instance Method Summary collapse

Methods included from Log

bin_regex, clean_ex, clean_ex_for_console, console_appender?, gems_regex, #log, ruby_regex, setup_logger

Constructor Details

#initialize(uri) ⇒ HttpChannel

Returns a new instance of HttpChannel.



6
7
8
# File 'lib/bixby-common/api/http_channel.rb', line 6

def initialize(uri)
  @uri = uri
end

Instance Method Details

#execute(json_request) ⇒ JsonResponse

Execute the given request

Parameters:

Returns:



15
16
17
# File 'lib/bixby-common/api/http_channel.rb', line 15

def execute(json_request)
  execute_internal(json_request)
end

#execute_download(json_request, &block) ⇒ JsonResponse

Execute a download request NOTE: This method is only available on the HTTP Channel.

Parameters:

Returns:



27
28
29
# File 'lib/bixby-common/api/http_channel.rb', line 27

def execute_download(json_request, &block)
  execute_internal(json_request, &block)
end