From a6debbc1758174ea77c808a76720e9eb8af508e0 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 11 Dec 2025 19:37:45 -0600 Subject: [PATCH] move HTTP module to own section --- astro.config.mjs | 5 +++++ src/content/docs/modules/{network => http}/http-client.md | 4 ++-- src/content/docs/modules/{network => http}/http-server.md | 4 ++-- src/content/docs/modules/network/tcp-client.md | 2 +- src/content/docs/modules/network/tcp-server.md | 2 +- src/content/docs/modules/network/udp-client.md | 2 +- src/content/docs/modules/network/udp-server.md | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) rename src/content/docs/modules/{network => http}/http-client.md (80%) rename src/content/docs/modules/{network => http}/http-server.md (85%) diff --git a/astro.config.mjs b/astro.config.mjs index 06a3596..64bf988 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -40,6 +40,11 @@ export default defineConfig({ collapsed: true, autogenerate: { directory: 'modules/network' } }, + { + label: "HTTP", + collapsed: true, + autogenerate: { directory: 'modules/http' } + }, ] }, { diff --git a/src/content/docs/modules/network/http-client.md b/src/content/docs/modules/http/http-client.md similarity index 80% rename from src/content/docs/modules/network/http-client.md rename to src/content/docs/modules/http/http-client.md index 2ff98e4..c50b258 100644 --- a/src/content/docs/modules/network/http-client.md +++ b/src/content/docs/modules/http/http-client.md @@ -5,11 +5,11 @@ sidebar: --- The HTTP Client module emits a message contianing the response of the HTTP calls it makes. -- **type**: `net.http.client` +- **type**: `http.client` - **params**: no params are needed for HTTP client ### Example ``` - id: httpSender1 - type: net.http.client + type: http.client ``` \ No newline at end of file diff --git a/src/content/docs/modules/network/http-server.md b/src/content/docs/modules/http/http-server.md similarity index 85% rename from src/content/docs/modules/network/http-server.md rename to src/content/docs/modules/http/http-server.md index cdfca86..0b96d6d 100644 --- a/src/content/docs/modules/network/http-server.md +++ b/src/content/docs/modules/http/http-server.md @@ -5,7 +5,7 @@ sidebar: --- The HTTP server module emits a message for every HTTP request that is made to the server -- **type**: `net.http.server` +- **type**: `http.server` - **params**: - **port**: TCP port to listen for HTTP requests on @@ -13,7 +13,7 @@ The HTTP server module emits a message for every HTTP request that is made to th Start an HTTP server listening on port 3000 ``` - id: httpServer - type: net.http.server + type: http.server params: port: 3000 ``` \ No newline at end of file diff --git a/src/content/docs/modules/network/tcp-client.md b/src/content/docs/modules/network/tcp-client.md index 9a77084..7db1040 100644 --- a/src/content/docs/modules/network/tcp-client.md +++ b/src/content/docs/modules/network/tcp-client.md @@ -1,7 +1,7 @@ --- title: TCP Client sidebar: - order: 3 + order: 1 --- The TCP client module connects to TCP server and emits a message for every message it receives from the server that it connects to. Messages are determined by "framing" techniques as TCP is a stream based protocol. The module will attempt to reconnect anytime the connection is closed. diff --git a/src/content/docs/modules/network/tcp-server.md b/src/content/docs/modules/network/tcp-server.md index dddd2ac..3c652f8 100644 --- a/src/content/docs/modules/network/tcp-server.md +++ b/src/content/docs/modules/network/tcp-server.md @@ -1,7 +1,7 @@ --- title: TCP Server sidebar: - order: 4 + order: 2 --- The TCP server module emits a message for every message it receives from clients that connect to it. Messages are determined by "framing" techniques as TCP is a stream based protocol. diff --git a/src/content/docs/modules/network/udp-client.md b/src/content/docs/modules/network/udp-client.md index 79cd96c..10c59be 100644 --- a/src/content/docs/modules/network/udp-client.md +++ b/src/content/docs/modules/network/udp-client.md @@ -1,7 +1,7 @@ --- title: UDP Client sidebar: - order: 5 + order: 3 --- The UDP client module sends messages to a the configured `host` and `port`. This module does not receive any message and so using it as an `input` to a [route](/concepts/routes) would be pointless. diff --git a/src/content/docs/modules/network/udp-server.md b/src/content/docs/modules/network/udp-server.md index 09cb74a..2bbc8f3 100644 --- a/src/content/docs/modules/network/udp-server.md +++ b/src/content/docs/modules/network/udp-server.md @@ -1,7 +1,7 @@ --- title: UDP Server sidebar: - order: 6 + order: 4 --- The UDP server module emits a message for every incoming UDP datagram.