http

package
v0.0.0-...-eab5816 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

http this simple http protocol. Only supports some methods, including: get, post, put, head, options and delete, etc..

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http

type Http struct {
	// contains filtered or unexported fields
}

Http struct of http.

func NewHttpProtocol

func NewHttpProtocol() *Http

NewHttpProtocol

func (*Http) Decode

func (h *Http) Decode(recvBuffer []byte) []byte

Decode parse POST, GET, COOKIE.

func (*Http) Encode

func (h *Http) Encode(data []byte) interface{}

Encode http encode, the type of return value is string.

func (*Http) GetPost

func (h *Http) GetPost() url.Values

GetPost return the data of post method.

func (*Http) Input

func (h *Http) Input(recvBuffer []byte, maxPackageSize int) interface{}

Input check the integrity of the package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL