_SessionGuard

Enforces the rule that an 'unsafe' request monopolizes the HTTPSession. A 'safe' request does not modify a resource state on the server, and such a request has no body.

class ref _SessionGuard

Constructors

create

new iso create(
  session: HTTPSession tag)
: _SessionGuard iso^

Parameters

Returns


Public fields


Public Functions

submit

Accept a request for transmission to the server. This will fail if the request is not "safe" and the HTTPSession is busy. Due to the possibly large body size, these requests can not be queued.

fun ref submit(
  request: Payload val)
: None val ?

Parameters

Returns