feat(scripts): add fetch-http script for HTTP requests

Introduce a new fetch-http script that facilitates making HTTP requests with configurable methods, headers, and body. The script includes validation for input parameters and logs the request and response details. This addition enhances the server's capability to interact with external APIs and services.
This commit is contained in:
2026-08-15 17:09:28 +07:00
parent 46e2cbb83b
commit 94ba931d9b
3 changed files with 164 additions and 6 deletions
+2 -4
View File
@@ -235,7 +235,7 @@ sendEmail.meta = {
type: "string",
required: false,
description:
"Well-known provider shortcut (e.g. gmail, outlook365, sendgrid). Alternative to host.",
"Nodemailer well-known service ID (e.g. Gmail, Outlook365, SendGrid). Sets host, port, and TLS. See https://nodemailer.com/smtp/well-known-services",
},
host: {
type: "string",
@@ -430,9 +430,7 @@ sendEmail.meta = {
text: "This is a plain-text test message.",
},
config: {
host: "smtp.gmail.com",
port: 587,
secure: false,
service: "Gmail",
user: "smtp-login@gmail.com",
from: "notifications@example.com",
passwordSecret: "gmail_app_password",