struct Protocol::Fetch::GetResponseBody

Overview

Causes the body of the response to be received from the server and returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.

Included Modules

Defined in:

protocol/fetch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def base64_encoded : Bool #

True, if content was sent as base64.


[View source]
def body : String #

Response body.


[View source]