mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-03 00:01:18 -04:00
22 lines
401 B
Plaintext
22 lines
401 B
Plaintext
module HTTPX::Transcoder
|
|
module XML
|
|
|
|
def self?.encode: (untyped xml) -> Encoder
|
|
def self?.decode: (HTTPX::Response response) -> _Decoder
|
|
|
|
class Encoder
|
|
@raw: untyped # can be nokogiri object
|
|
|
|
def content_type: () -> String
|
|
|
|
def bytesize: () -> (Integer | Float)
|
|
|
|
def to_s: () -> String
|
|
|
|
private
|
|
|
|
def initialize: (String xml) -> void
|
|
end
|
|
end
|
|
end
|