http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteRequest

func WriteRequest(request *http.Request) []byte

Write writes a an HTTP request, which is the header and body, in wire format.

func WriteResponse

func WriteResponse(response *echo.Response, proto Protocol, body []byte) []byte

Write writes an HTTP response, which is the header and body, in wire format.

Types

type Protocol

type Protocol struct {
	ProtoMajor int
	ProtoMinor int
}

Protocol contains the major and minor version used in the request

Jump to

Keyboard shortcuts

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