Initial commit (code only without large binaries)
This commit is contained in:
38
EdgeNode/internal/js/request_interface.go
Normal file
38
EdgeNode/internal/js/request_interface.go
Normal file
@@ -0,0 +1,38 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package js
|
||||
|
||||
import (
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type RequestInterface interface {
|
||||
Id() string
|
||||
Server() maps.Map
|
||||
Node() maps.Map
|
||||
URL() string
|
||||
Path() string
|
||||
URI() string
|
||||
SetURI(uri string)
|
||||
Host() string
|
||||
RemoteAddr() string
|
||||
RawRemoteAddr() string
|
||||
RemotePort() int
|
||||
Method() string
|
||||
ContentLength() int64
|
||||
TransferEncoding() string
|
||||
Proto() string
|
||||
ProtoMajor() int
|
||||
ProtoMinor() int
|
||||
Cookie(name string) string
|
||||
Header() http.Header
|
||||
SetHeader(name string, values []string)
|
||||
DeleteHeader(name string)
|
||||
SetAttr(name string, value string)
|
||||
SetVar(name string, value string)
|
||||
Format(format string) string
|
||||
Done()
|
||||
Close()
|
||||
Allow()
|
||||
}
|
||||
Reference in New Issue
Block a user