mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-03 00:01:18 -04:00
27 lines
545 B
Plaintext
27 lines
545 B
Plaintext
module HTTPX::Transcoder
|
|
module JSON
|
|
JSON_REGEX: Regexp
|
|
|
|
def self?.encode: (_ToJson json) -> Encoder
|
|
def self?.decode: (HTTPX::Response response) -> _Decoder
|
|
|
|
def self?.json_load: (string source, ?json_options) -> untyped
|
|
def self?.json_dump: (_ToJson obj, *untyped) -> String
|
|
|
|
class Encoder
|
|
extend Forwardable
|
|
include _Encoder
|
|
include _ToS
|
|
|
|
@raw: String
|
|
@charset: String
|
|
|
|
def content_type: () -> String
|
|
|
|
private
|
|
|
|
def initialize: (_ToJson json) -> void
|
|
end
|
|
end
|
|
end
|