This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhuyujia-yydns/att script/4(v6 DDoS)/code/辅助权威服务器/plugin/pkg/request/http_request.go

26 lines
640 B
Go

package request
import (
"net/http"
)
// HTTPRequest contains some connection state and is useful in plugin.
type HTTPRequest struct {
Req *http.Request
W http.ResponseWriter
// Optional lowercased zone of this query.
Zone string
// Cache size after first call to Size or Do. If size is zero nothing has been cached yet.
// Both Size and Do set these values (and cache them).
size uint16 // UDP buffer size, or 64K in case of TCP.
// Caches
family int8 // transport's family.
ip string // client's ip.
port string // client's port.
localPort string // server's port.
localIP string // server's ip.
}