httpx/sig/transcoder/json.rbs
HoneyryderChuck 0d58408c58 compression plugins for gzip and deflate supported by default
most of the code was moved to the transcoder layer.

The `compression_threshold_size` option has been removed.

The `:compression/brotli` plugin becomes only ´:brotli`, and depends on
the new transcoding APIs.

options to skip compression and decompression were added.
2023-09-20 17:57:41 +01:00

29 lines
568 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
@raw: String
@charset: String
def bytesize: () -> Integer
def content_type: () -> String
def to_s: () -> String
private
def initialize: (_ToJson json) -> void
end
end
end