Skip to content
Sign in

http

v0.22.2

Expose functions as HTTP endpoints — hosts `http::on-request`; each observer of it declares a route, and its target answers the matched requests.

license: Apache-2.0Used in 1 kitapiendpointhttprest

Install

bash
iii call compose::add worker=http@0.22.2

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions2

http

Function

HTTP API trigger

Request
  • api_pathstringrequired
  • condition_function_idstring
  • http_methodstring
  • middleware_function_idsstring[]
  • public_webhookboolean

    Also expose this route on the restricted webhook listener. Explicit opt-in only; the default keeps existing routes on the normal listener.

Response
  • bodyunknownrequired
  • headersobjectrequired
  • methodstringrequired
  • pathstringrequired
  • path_paramsobjectrequired
  • query_paramsobjectrequired
  • request_bodyobjectrequired
    • access_keystringrequired
    • channel_idstringrequired
    • directionstringrequiredenum read, write
  • responseobjectrequired
    • access_keystringrequired
    • channel_idstringrequired
    • directionstringrequiredenum read, write
  • triggerany of
    any of (2)
    Variant 1
    • methodstring
    • pathstring
    • typestringrequired
    Variant 2
    valuenull

http::configuration-id

Function

Returns this HTTP instance's configuration entry ID, without its value.

Request
Empty object
Response
  • idstringrequired

Search the registry

Find workers, kits and executables, or jump to a page.