Sha256: 9ead118931f445979c3ae4e9b79a8e60062b49fe74d3d3611519f8543a9c4669

Contents?: true

Size: 867 Bytes

Versions: 3

Compression:

Stored size: 867 Bytes

Contents

module HTTPX
  class Request::Body
    attr_reader threshold_size: Integer?

    @headers: Headers
    @body: body_encoder?
    @unbounded_body: bool

    def initialize: (Headers headers, Options options) -> 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 initialize_body: (Options options) -> void

    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

3 entries across 3 versions & 1 rubygems

Version Path
httpx-1.0.2 sig/request/body.rbs
httpx-1.0.1 sig/request/body.rbs
httpx-1.0.0 sig/request/body.rbs