Module: HTTPX::Plugins::XML::Transcoder
- Defined in:
- lib/httpx/plugins/xml.rb,
sig/plugins/xml.rbs
Defined Under Namespace
Classes: Encoder
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.decode(response) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/httpx/plugins/xml.rb', line 38 def decode(response) content_type = response.content_type.mime_type raise HTTPX::Error, "invalid form mime type (#{content_type})" unless MIME_TYPES.match?(content_type) Nokogiri::XML.method(:parse) end |
Instance Method Details
#self?.decode ⇒ HTTPX::Transcoder::_Decoder
8 |
# File 'sig/plugins/xml.rbs', line 8
def self?.decode: (HTTPX::Response response) -> HTTPX::Transcoder::_Decoder
|
#self?.encode ⇒ Encoder
7 |
# File 'sig/plugins/xml.rbs', line 7
def self?.encode: (Nokogiri::XML::Node | String xml) -> Encoder
|