// 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() }