Versions in this module Expand all Collapse all v0 v0.2.2 Apr 25, 2018 v0.2.1 Apr 24, 2018 Changes in this version + var CLRF = []byte + var SEP = []byte + func AddRouter(Url []byte, method HttpMethod, handler func(*HttpRequest, *HttpResponse)) error + func DefaultGETHandler(request *HttpRequest, response *HttpResponse) + func DefaultHEADHandler(request *HttpRequest, response *HttpResponse) + func DefaultPOSTHandler(request *HttpRequest, response *HttpResponse) + func Handler(rawPacket []byte) (rep []byte, isKeepAlive bool) + func RemoveRouter(Url []byte, method HttpMethod) error + type HttpMethod uint8 + const GET + const HEAD + const POST + type HttpRequest struct + func (req *HttpRequest) GetAllParamKey() []string + func (req *HttpRequest) GetParam(key string) string + type HttpResponse struct + func (rep *HttpResponse) SetHeader(key string, value string) + func (rep *HttpResponse) Write(Data ...interface{}) + type HttpStateCode uint16 + const BadRequest + const Forbidden + const InternalServerError + const NotFound + const OK + const ServerUnavailable + const Unauthorized