class Stripe::StripeHeadersOnlyResponse
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.
Public Class Methods
from_net_http(http_resp)
click to toggle source
Initializes a StripeHeadersOnlyResponse
object from a Net::HTTP::HTTPResponse object.
# File lib/stripe/stripe_response.rb, line 104 def self.from_net_http(http_resp) resp = StripeHeadersOnlyResponse.new StripeResponseBase.populate_for_net_http(resp, http_resp) resp end