Skip to content

CheckRequester

[Source]

Issues an HTTP GET request and interprets the status code as a boolean: 204 means true, 404 means false, and any other status is treated as a failure. Used for GitHub API endpoints that answer yes/no questions via status codes (e.g., checking whether a gist is starred).

actor tag CheckRequester is
  HTTPClientConnectionActor tag

Implements


Constructors

create

[Source]

Issues an HTTP GET request interpreting 204 as true and 404 as false.

new tag create(
  creds: Credentials val,
  url: String val,
  receiver: CheckResultReceiver tag)
: CheckRequester 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