-- SPDX-FileCopyrightText: © 2022—2026 Vladimir Zorin -- SPDX-License-Identifier: LicenseRef-OWL-1.0-or-later -- Licensed under OWL v1.0+. See LICENSE. --[==[ HTTP client utilities for requests with TLS/mTLS and redirect following. Supports Server-Sent Events streaming, URL encoding, HTML entity escaping, and multipart/URL-encoded form body building and parsing. Delegates to http.request and http.sse for HTTP requests and SSE streaming (requires lev.run() context). ]==] local http_request = require("http.request") local http_sse = require("http.sse") local forms = require("http.forms") return { request = http_request.request, sse_client = http_sse.sse_client, url_escape = forms.url_escape, html_escape = forms.html_escape, html_unescape = forms.html_unescape, make_form_data = forms.make_form_data, parse_args = forms.parse_args, parse_form_data = forms.parse_form_data, }