Initial Dever 0.0.1

This commit is contained in:
Codex committed 2026-11-03 03:32:07 +00:00
commit 81233d098c
1479 files changed
+163782

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
# HTTP 调用
发送请求或处理完整响应,正文一次读入内存。
## dever.http.header
构造 HTTP 头:名称转为小写,值按 UTF-8 编码。
## dever.http.headerValue
按名称忽略大小写查找首个 HTTP 头,找不到返回 null。
## dever.http.namedHeader
供 headerValue 匹配 HTTP 头名称。
## dever.http.foundHeader
取出匹配头的原始字节值;没有匹配项时返回 null。
## dever.http.serve
在给定监听器上处理 HTTP 请求,由 route 返回完整响应。
## dever.http.send
向给定地址和端口发送 HTTP 请求,读取完整响应。
## dever.http.serveTls
使用证书配置处理 HTTPS 请求。启用 HTTP/2 时须成功协商 h2。
## dever.http.readResponse
取出 HTTP 响应;请求失败时继续传播错误。