class Aws::EventStream::Message

Attributes

headers[R]

@return [Hash] headers of a message

payload[R]

@return [IO] payload of a message, size not exceed 16MB.

StringIO is returned for <= 1MB payload
Tempfile is returned for > 1MB payload

Public Class Methods

new(options) click to toggle source
# File lib/aws-eventstream/message.rb, line 7
def initialize(options)
  @headers = options[:headers] || {}
  @payload = options[:payload] || StringIO.new
end