Class: RestCore::Payload::Streamed

Inherits:
RestCore::Payload show all
Defined in:
lib/rest-core/util/payload.rb

Direct Known Subclasses

Multipart, StreamedString

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

#io

Instance Method Summary collapse

Methods inherited from RestCore::Payload

#close, #closed?, generate, generate_with_headers, #initialize, #read, #size

Methods included from RestCore

eagerload, id

Constructor Details

This class inherits a constructor from RestCore::Payload

Instance Method Details

#headersObject



73
74
75
# File 'lib/rest-core/util/payload.rb', line 73

def headers
  {'Content-Length' => size.to_s}
end