Module: Spreedly::SslRequester

Included in:
Environment
Defined in:
lib/spreedly/ssl_requester.rb

Instance Method Summary collapse

Instance Method Details

#ssl_get(endpoint, headers) ⇒ Object


5
6
7
# File 'lib/spreedly/ssl_requester.rb', line 5

def ssl_get(endpoint, headers)
  ssl_request(:get, endpoint, nil, headers)
end

#ssl_options(endpoint) ⇒ Object


21
22
23
# File 'lib/spreedly/ssl_requester.rb', line 21

def ssl_options(endpoint)
  ssl_request(:options, endpoint, nil, {})
end

#ssl_post(endpoint, body, headers, talking_to_gateway = false) ⇒ Object


9
10
11
# File 'lib/spreedly/ssl_requester.rb', line 9

def ssl_post(endpoint, body, headers, talking_to_gateway = false)
  ssl_request(:post, endpoint, body, headers, talking_to_gateway: talking_to_gateway)
end

#ssl_put(endpoint, body, headers) ⇒ Object


17
18
19
# File 'lib/spreedly/ssl_requester.rb', line 17

def ssl_put(endpoint, body, headers)
  ssl_request(:put, endpoint, body, headers)
end

#ssl_raw_get(endpoint, headers) ⇒ Object


13
14
15
# File 'lib/spreedly/ssl_requester.rb', line 13

def ssl_raw_get(endpoint, headers)
  ssl_request(:get, endpoint, nil, headers, return_raw: true)
end