class Stripe::StripeHeadersOnlyResponse

response in memory.
directly in a block and we explicitly don’t want to store the body of the
response. This is used for streaming requests where the response was read
StripeHeadersOnlyResponse includes only header-related vitals of the

def self.from_net_http(http_resp)

Net::HTTP::HTTPResponse object.
Initializes a StripeHeadersOnlyResponse object from a
def self.from_net_http(http_resp)
  resp = StripeHeadersOnlyResponse.new
  StripeResponseBase.populate_for_net_http(resp, http_resp)
  resp
end