_ClientConnHandler

This is the network notification handler for the client. It passes received data to the HTTPParser to assemble response Payload objects.

class ref _ClientConnHandler is
  TCPConnectionNotify ref

Implements


Constructors

create

new iso create(
  client: _ClientConnection tag)
: _ClientConnHandler iso^

Parameters

Returns


Public Functions

connected

Tell the client we have connected.

fun ref connected(
  conn: TCPConnection ref)
: None val

Parameters

Returns


connect_failed

The connection could not be established. Tell the client not to proceed.

fun ref connect_failed(
  conn: TCPConnection ref)
: None val

Parameters

Returns


auth_failed

SSL authentication failed. Tell the client not to proceed.

fun ref auth_failed(
  conn: TCPConnection ref)
: None val

Parameters

Returns


received

Pass a received chunk of data to the _HTTPParser.

fun ref received(
  conn: TCPConnection ref,
  data: Array[U8 val] iso,
  times: USize val)
: Bool val

Parameters

Returns


closed

The connection has closed, possibly prematurely.

fun ref closed(
  conn: TCPConnection ref)
: None val

Parameters

Returns


throttled

TCP connection wants us to stop sending. We do not do anything with this here; just pass it on to the HTTPSession.

fun ref throttled(
  conn: TCPConnection ref)
: None val

Parameters

Returns


unthrottle

TCP can accept more data now. We just pass this on to the HTTPSession

fun ref unthrottle(
  conn: TCPConnection ref)
: None val

Parameters

Returns


accepted

fun ref accepted(
  conn: TCPConnection ref)
: None val

Parameters

Returns


connecting

fun ref connecting(
  conn: TCPConnection ref,
  count: U32 val)
: None val

Parameters

Returns


sent

fun ref sent(
  conn: TCPConnection ref,
  data: (String val | Array[U8 val] val))
: (String val | Array[U8 val] val)

Parameters

Returns


sentv

fun ref sentv(
  conn: TCPConnection ref,
  data: ByteSeqIter val)
: ByteSeqIter val

Parameters

Returns


expect

fun ref expect(
  conn: TCPConnection ref,
  qty: USize val)
: USize val

Parameters

Returns


unthrottled

fun ref unthrottled(
  conn: TCPConnection ref)
: None val

Parameters

Returns