Sha256: 2d5c62102fc14e8413a4ad2b8656d360000e94bd3638756005342ff1354f7d0b

Contents?: true

Size: 825 Bytes

Versions: 12

Compression:

Stored size: 825 Bytes

Contents

module HTTPX
  class Request::Body
    @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

12 entries across 12 versions & 1 rubygems

Version Path
httpx-1.2.6 sig/request/body.rbs
httpx-1.2.4 sig/request/body.rbs
httpx-1.2.3 sig/request/body.rbs
httpx-1.2.2 sig/request/body.rbs
httpx-1.2.1 sig/request/body.rbs
httpx-1.2.0 sig/request/body.rbs
httpx-1.1.5 sig/request/body.rbs
httpx-1.1.4 sig/request/body.rbs
httpx-1.1.3 sig/request/body.rbs
httpx-1.1.2 sig/request/body.rbs
httpx-1.1.1 sig/request/body.rbs
httpx-1.1.0 sig/request/body.rbs