Class: Stripe::StripeHeadersOnlyResponse
- Inherits:
-
Object
- Object
- Stripe::StripeHeadersOnlyResponse
- Includes:
- StripeResponseBase
- Defined in:
- lib/stripe/stripe_response.rb
Overview
StripeHeadersOnlyResponse includes only header-related vitals of the response. This is used for streaming requests where the response was read directly in a block and we explicitly don’t want to store the body of the response in memory.
Instance Attribute Summary
Attributes included from StripeResponseBase
#http_headers, #http_status, #request_id
Class Method Summary collapse
-
.from_net_http(http_resp) ⇒ Object
Initializes a StripeHeadersOnlyResponse object from a Net::HTTP::HTTPResponse object.
Methods included from StripeResponseBase
Class Method Details
.from_net_http(http_resp) ⇒ Object
Initializes a StripeHeadersOnlyResponse object from a Net::HTTP::HTTPResponse object.
102 103 104 105 106 |
# File 'lib/stripe/stripe_response.rb', line 102 def self.from_net_http(http_resp) resp = StripeHeadersOnlyResponse.new StripeResponseBase.populate_for_net_http(resp, http_resp) resp end |