Sha256: e0c477574102fb9bf1b35c60948840e7f2770055351e1d85094167bad35fb683

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

module HTTPX
  class Response::Body
    include _Reader
    include _ToS
    include _ToStr

    attr_reader encoding: Encoding
    attr_reader encodings: Array[String]

    @response: Response
    @headers: Headers
    @options: Options
    @state: :idle | :memory | :buffer | :closed
    @window_size: Integer
    @length: Integer
    @buffer: StringIO | Tempfile | nil
    @reader: StringIO | Tempfile | nil
    @inflaters: Array[Transcoder::_Inflater]

    def initialize: (Response, Options) -> void

    def closed?: () -> bool

    def write:(String chunk) -> Integer?

    def filename: () -> String?

    def bytesize: () -> Integer

    def each: () { (String) -> void } -> void
            | () -> Enumerable[String]

    def empty?: () -> bool

    def copy_to: (String | File | _Writer destination) -> void

    def close: () -> void

    def rewind: () -> void

    private

    def initialize_inflaters: () -> void

    def self.initialize_inflater_by_encoding: (Encoding | String encoding, Response response, ?bytesize: Integer) -> Transcoder::GZIP::Inflater

    def decode_chunk: (String chunk) -> String

    def transition: (Symbol nextstate) -> void

    def _with_same_buffer_pos: [A] () { () -> A } -> A
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/response/body.rbs