package
1.0.3
Repository: https://github.com/qtgolang/sunnynet.git
Documentation: pkg.go.dev

# Functions

BuildRequest 处理解析HTTP请求结构.
BytesCombine 连接多个字节数组.
CheckFileIsExist 检查文件是否存在.
ContentTypeIsText 是否是文档类型.
CopyBuffer 转发数据.
CopyBytes 拷贝 字节数组避免内存泄漏.
CopyString 拷贝字符串 避免内存泄漏.
CStringToBytes C字符串转字节数组.
No description provided by the author
GetHost HTTP文本请求体中获取Host.
GetMethod 从指定数据中获取HTTP请求 Method.
Int64ToBytes int64转字节数组.
IntToBytes int转字节数组.
IsCerRequest 是否下载证书的请求.
IsForward 是否是大文件类型.
IsHttpMethod 通过指定字符串判断是否HTTP数据.
IsHTTPRequest 在读写对象中判断是否为HTTP请求.
IsIPv4 是否IPV4.
IsIPv6 是否IPV6.
LegitimateRequest 解析HTTP 请求体, 2024-01-20修改后的代码.
LegitimateRequestBAK 解析HTTP 请求体, 2024-01-20之前版本的代码.
LocalBuildBody 本地文件响应数据转为Bytes.
NewReadWriteObject 构建读写对象.
ReadWriterPeek 在读写对象中读取n个字节,而不推进读取器.
RemoveFile 删除文件.
ResponseToHeader HTTP响应体到字节数组.
SplitHostPort 分割Host 和 Port 忽略IPV6地址.
StructureBody HTTP响应体转为字节数组.
SubString 截取字符串中间部分.
WriteBytesToFile 写入数据到文件.
WriteErr 将错误信息写入指针 请确保指针内的空间足够.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
中间件唯一ID.
No description provided by the author

# Structs

ReadWriteObject 数据读写流.
No description provided by the author
No description provided by the author
No description provided by the author
ZlibCompress 主要用于Zlib 压缩.