Skip to content

NoContentRequester

[Source]

Issues an HTTP request that expects a 204 No Content response. Supports DELETE and PUT methods. On success, calls receiver.success(); on any other status or connection failure, calls receiver.failure() with details.

actor tag NoContentRequester is
  HTTPClientConnectionActor tag

Implements


Constructors

delete

[Source]

Issues an HTTP DELETE request expecting a 204 response.

new tag delete(
  creds: Credentials val,
  url: String val,
  receiver: DeleteResultReceiver tag)
: NoContentRequester tag^

Parameters

Returns


put

[Source]

Issues an HTTP PUT request with no body, expecting a 204 response. Used for operations like starring a gist.

new tag put(
  creds: Credentials val,
  url: String val,
  receiver: DeleteResultReceiver tag)
: NoContentRequester 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