Class: RestCore::Payload::StreamedString
- Inherits:
-
Streamed
- Object
- RestCore::Payload
- Streamed
- RestCore::Payload::StreamedString
- Defined in:
- lib/rest-core/util/payload.rb
Direct Known Subclasses
Constant Summary
Constants included from RestCore
ASYNC, CLIENT, DRY, FAIL, HIJACK, LOG, RestCore::PROMISE, REQUEST_HEADERS, REQUEST_METHOD, REQUEST_PATH, REQUEST_PAYLOAD, REQUEST_QUERY, REQUEST_URI, RESPONSE_BODY, RESPONSE_HEADERS, RESPONSE_KEY, RESPONSE_SOCKET, RESPONSE_STATUS, Simple, TIMER, Universal, VERSION
Instance Attribute Summary
Attributes inherited from RestCore::Payload
Instance Method Summary collapse
-
#initialize(payload) ⇒ StreamedString
constructor
A new instance of StreamedString.
Methods inherited from Streamed
Methods inherited from RestCore::Payload
#close, #closed?, generate, generate_with_headers, #headers, #read, #size
Methods included from RestCore
Constructor Details
#initialize(payload) ⇒ StreamedString
Returns a new instance of StreamedString.
79 80 81 |
# File 'lib/rest-core/util/payload.rb', line 79 def initialize payload super(StringIO.new(payload)) end |