package
Version:
v0.0.0-...-eab5816
Opens a new window with list of versions in this module.
Published: Feb 24, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
http this simple http protocol.
Only supports some methods, including: get, post, put, head, options and delete, etc..
Http struct of http.
func NewHttpProtocol() *Http
NewHttpProtocol
Decode parse POST, GET, COOKIE.
func (h *Http) Encode(data []byte) interface{}
Encode http encode, the type of return value is string.
GetPost return the data of post method.
func (h *Http) Input(recvBuffer []byte, maxPackageSize int) interface{}
Input check the integrity of the package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.