A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Seahorse/Client/RequestContext.html below:

RequestContext — AWS SDK for Ruby V2

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Seahorse::Client::RequestContext
Inherits:
Object show all
Defined in:
aws-sdk-core/lib/seahorse/client/request_context.rb
Instance Attribute Summary collapse Instance Method Summary collapse Constructor Details #initialize(options = {}) ⇒ RequestContext

Returns a new instance of RequestContext.

14
15
16
17
18
19
20
21
22
23
24
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 14

def initialize(options = {})
  @operation_name = options[:operation_name]
  @operation = options[:operation]
  @client = options[:client]
  @params = options[:params] || {}
  @config = options[:config]
  @http_request = options[:http_request] || Http::Request.new
  @http_response = options[:http_response] || Http::Response.new
  @retries = 0
  @metadata = {}
end
Instance Attribute Details #clientSeahorse::Client::Base
33
34
35
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 33

def client
  @client
end
#configConfiguration

Returns The client configuration.

39
40
41
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 39

def config
  @config
end
#http_requestHttp::Request
42
43
44
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 42

def http_request
  @http_request
end
#http_responseHttp::Response
45
46
47
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 45

def http_response
  @http_response
end
#metadata ⇒ Hash
51
52
53
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 51

def metadata
  @metadata
end
#operationModel::Operation
30
31
32
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 30

def operation
  @operation
end
#operation_name ⇒ Symbol

Returns Name of the API operation called.

27
28
29
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 27

def operation_name
  @operation_name
end
#params ⇒ Hash

Returns The hash of request parameters.

36
37
38
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 36

def params
  @params
end
#retries ⇒ Integer
48
49
50
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 48

def retries
  @retries
end
Instance Method Details #[](key) ⇒ Object

Returns the metadata for the given key.

56
57
58
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 56

def [](key)
  @metadata[key]
end
#[]=(key, value) ⇒ Object

Sets the request context metadata for the given key. Request metadata useful for handlers that need to keep state on the request, without sending that data with the request over HTTP.

65
66
67
# File 'aws-sdk-core/lib/seahorse/client/request_context.rb', line 65

def []=(key, value)
  @metadata[key] = value
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4