Sha256: c94f3c856a648179e423b0da0ed2d013dcc1297dc8d4c228035e05e297da06d3

Contents?: true

Size: 854 Bytes

Versions: 5

Compression:

Stored size: 854 Bytes

Contents

module HTTPX
  class Request::Body
    @headers: Headers
    @body: body_encoder?
    @unbounded_body: bool

    def initialize: (Headers headers, Options options, ?body: bodyIO, ?form: Transcoder::urlencoded_input?, ?json: _ToJson?, **untyped) -> void

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

    def rewind: () -> void

    def empty?: () -> bool

    def bytesize: () -> (Integer | Float)

    def stream: (Transcoder::_Encoder) -> bodyIO

    def unbounded_body?: () -> bool

    def chunked?: () -> bool

    def chunk!: () -> void

    private

    def self.initialize_deflater_body: (body_encoder body, Encoding | String encoding) -> body_encoder
  end

  class ProcIO
    @block: ^(String) -> void

    def initialize: (^(String) -> void) -> untyped

    def write: (String data) -> Integer
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/request/body.rbs
httpx-1.3.3 sig/request/body.rbs
httpx-1.3.2 sig/request/body.rbs
httpx-1.3.1 sig/request/body.rbs
httpx-1.3.0 sig/request/body.rbs