Skip to content

LinkedJsonRequester

[Source]

Issues an HTTP GET request and delivers the JSON response along with the Link header to a LinkedResultReceiver. Used by both paginated list and search result endpoints. Follows 301/307 redirects automatically.

actor tag LinkedJsonRequester is
  HTTPClientConnectionActor tag

Implements


Constructors

create

[Source]

Issues an HTTP GET request expecting a 200 response with JSON body and Link header for pagination.

new tag create(
  creds: Credentials val,
  url: String val,
  receiver: LinkedResultReceiver tag)
: LinkedJsonRequester tag^

Parameters

Returns


Public Behaviours

dispose

[Source]

be dispose()

Public Functions

on_connected

[Source]

fun ref on_connected()
: None val

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_connection_failure

[Source]

fun ref on_connection_failure(
  reason: (ConnectionFailedDNS val | ConnectionFailedTCP val | ConnectionFailedSSL val | 
    ConnectionFailedTimeout val))
: None val

Parameters

Returns


on_parse_error

[Source]

fun ref on_parse_error(
  err: (TooLarge val | InvalidStatusLine val | InvalidVersion val | 
    MalformedHeaders val | InvalidContentLength val | InvalidChunk val | 
    BodyTooLarge val))
: 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