mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
instead of implementing method missing; this makes it simpler impl-wise, and it'll also make comparing types easier, although not needed ATM
24 lines
428 B
Plaintext
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 |