Skip to content

RedirectFollowerNotify

[Source]

Callback trait for actors using RedirectFollower.

Extends HTTPClientLifecycleEventReceiver with one callback for redirect errors. Implement this instead of the base trait when using RedirectFollower.

trait ref RedirectFollowerNotify is
  HTTPClientLifecycleEventReceiver ref

Implements


Public Functions

on_redirect_error

[Source]

Called when a redirect cannot be followed: budget exhausted, Location missing or unparseable, or https-to-http downgrade. The 3xx response is not delivered through on_response.

fun ref on_redirect_error(
  err: RedirectError)
: None val

Parameters

Returns


on_connected

[Source]

fun ref on_connected()
: None val

Returns


on_connection_failure

[Source]

fun ref on_connection_failure(
  reason: ConnectionFailureReason)
: None val

Parameters

Returns


on_response

[Source]

fun ref on_response(
  response: Response val)
: None val

Parameters

Returns


on_body_chunk

[Source]

fun ref on_body_chunk(
  data: Array[U8 val] val)
: None val

Parameters

Returns


on_response_complete

[Source]

fun ref on_response_complete()
: None val

Returns


on_parse_error

[Source]

fun ref on_parse_error(
  err: ParseError)
: None val

Parameters

Returns


on_closed

[Source]

fun ref on_closed()
: None val

Returns


on_throttled

[Source]

fun ref on_throttled()
: None val

Returns


on_unthrottled

[Source]

fun ref on_unthrottled()
: None val

Returns


on_timer

[Source]

fun ref on_timer(
  token: TimerToken val)
: None val

Parameters

Returns


on_timer_failure

[Source]

fun ref on_timer_failure()
: None val

Returns