Skip to content

ChunkSendToken

[Source]

Identifies a send_chunk() operation.

Returned by Responder.send_chunk() on success. The same token reaches HTTPServerLifecycleEventReceiver.on_chunk_sent(). No callback fires until the chunk's bytes reach the OS, and even then it can be lost — see that callback for the case where it does not arrive. Tokens use structural equality based on their ID, which is scoped per connection.

Applications managing multiple connections should pair tokens with connection identity to avoid ambiguity.

class val ChunkSendToken is
  Equatable[ChunkSendToken val] ref

Implements


Public fields

let id: U64 val

[Source]


Public Functions

eq

[Source]

fun box eq(
  that: ChunkSendToken val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: ChunkSendToken val)
: Bool val

Parameters

Returns