Sha256: 369fd3c4f3f3c548516668035a853d41d7b72988d91d8b8c7aa80f9f54a48d86

Contents?: true

Size: 1.23 KB

Versions: 13

Compression:

Stored size: 1.23 KB

Contents

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

    attr_reader encoding: Encoding | String
    attr_reader encodings: Array[Encoding | 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

13 entries across 13 versions & 1 rubygems

Version Path
httpx-1.3.3 sig/response/body.rbs
httpx-1.3.2 sig/response/body.rbs
httpx-1.3.1 sig/response/body.rbs
httpx-1.3.0 sig/response/body.rbs
httpx-1.2.6 sig/response/body.rbs
httpx-1.2.4 sig/response/body.rbs
httpx-1.2.3 sig/response/body.rbs
httpx-1.2.2 sig/response/body.rbs
httpx-1.2.1 sig/response/body.rbs
httpx-1.2.0 sig/response/body.rbs
httpx-1.1.5 sig/response/body.rbs
httpx-1.1.4 sig/response/body.rbs
httpx-1.1.3 sig/response/body.rbs