httpx/sig/transcoder/body.rbs
HoneyryderChuck f573c1c50b transcode: body encoder is now a simple delegator
instead of implementing method missing; this makes it simpler impl-wise, and it'll also make comparing types easier, although not needed ATM
2025-02-13 19:16:45 +00:00

24 lines
428 B
Plaintext

module HTTPX
module Transcoder
module Body
class Error < HTTPX::Error
end
class Encoder # < SimpleDelegator
@raw: Object & bodyIO
def bytesize: () -> (Integer | Float)
def content_type: () -> String
def to_s: () -> String
private
def initialize: (untyped body) -> untyped
end
def self?.encode: (bodyIO body) -> Encoder
end
end
end