Class: Restate::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/restate/context.rb

Overview

Request metadata available to handlers via ctx.request.

Instance Attribute Summary collapse

Instance Attribute Details

#attempt_finished_eventAttemptFinishedEvent (readonly)

Returns signaled when this attempt ends.

Returns:



66
# File 'lib/restate/context.rb', line 66

Request = Struct.new(:id, :headers, :body, :attempt_finished_event, keyword_init: true)

#bodyString (readonly)

Returns raw input bytes.

Returns:

  • (String)

    raw input bytes



66
# File 'lib/restate/context.rb', line 66

Request = Struct.new(:id, :headers, :body, :attempt_finished_event, keyword_init: true)

#headersHash{String => String} (readonly)

Returns request headers.

Returns:

  • (Hash{String => String})

    request headers



66
# File 'lib/restate/context.rb', line 66

Request = Struct.new(:id, :headers, :body, :attempt_finished_event, keyword_init: true)

#idString (readonly)

Returns the invocation ID.

Returns:

  • (String)

    the invocation ID



66
# File 'lib/restate/context.rb', line 66

Request = Struct.new(:id, :headers, :body, :attempt_finished_event, keyword_init: true)