Documentation ¶
Index ¶
Constants ¶
View Source
const ( SchemaHTTP SchemaType = "http://" SchemaHTTPS SchemaType = "https://" HTTP_METHOD_GET = "GET" HTTP_METHOD_POST = "POST" CONTENT_TYPE_JSON = "application/json" CONTENT_TYPE_FORM = "application/x-www-form-urlencoded" CONTENT_TYPE_XML = "application/xml" HEADER_CONTENT_TYPE = "Content-Type" HEADER_CONTENT_KEY = "key" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ProxySchema SchemaType // SchemaHTTP or SchemaHTTPS ProxyHost string ProxyPort string ServerPort string Key string }
配置文件
type ProxyHandler ¶
type ProxyHandler struct{}
func (*ProxyHandler) ServeHTTP ¶
func (p *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SchemaType ¶
type SchemaType string
Click to show internal directories.
Click to hide internal directories.