JsonHTTP

source extra: json-http

HTTP JSON source node. Accepts POST /<endpoint> with JSON body. This is a sourceless node, in the sense that the source function itself only spawns the server handler and listens forever for incoming requests, while the handler writes on the node queue whenever a message is received.

Node type:

JsonHTTP

Input:

–

Output:

ObjectPayload

Extra:

json-http

$ pip install "juturna-nodes[json-http]"

License

  • Code: this node is part of juturna-nodes, MIT (its LICENSE file).

  • Third-party runtime: none beyond the juturna core (MIT); the node uses the Python standard library.

Configuration

Default node arguments, as defined in the node config.toml file. Any of them can be overridden in the node configuration of a pipeline.

[arguments]
host = "127.0.0.1"
port = 8888
endpoint = "juturna"

[meta]

Pipeline usage

{
  "name": "json_http",
  "type": "JsonHTTP",
  "configuration": {}
}

Reference

class JsonHTTP(host: str, port: int | str, endpoint: str, **kwargs)

HTTP JSON source node.