Class: HTTPX::Transcoder::JSON::Encoder
- Inherits:
-
Object
- Object
- HTTPX::Transcoder::JSON::Encoder
- Extended by:
- Forwardable
- Defined in:
- lib/httpx/transcoder/json.rb
Instance Method Summary collapse
- #content_type ⇒ Object
-
#initialize(json) ⇒ Encoder
constructor
A new instance of Encoder.
Constructor Details
Instance Method Details
#content_type ⇒ Object
37 38 39 |
# File 'lib/httpx/transcoder/json.rb', line 37 def content_type "application/json; charset=#{@charset}" end |