Skip to main content
100%

buzzPost request example

✓ Published0🌍 Public
Aandrew-psch
Last edited Jul 19, 2020
Created on Jul 17, 2020

This example demonstrates a minimal HTTP POST request sent from a browser to a remote server, using the Fetch API to transmit JSON-encoded data. The code posts to the endpoint `https://hub11.dev-labs.io` with a body containing a `channel` field set to `"alfa"` and a `data` field with the string `"Hello world!"`. It shows how to construct a structured payload with `JSON.stringify` and send it asynchronously, though it does not include any response handling or visualization. The example relies solely on the native `fetch` method, with no external libraries or rendering components.

AI-generated description

Similar vizzes