http2rpc

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//XServicePath service path
	XServicePath = "X-RPCX-ServicePath"
	//XServiceMethod service method
	XServiceMethod = "X-RPCX-ServiceMethod"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP2RPC

type HTTP2RPC struct {
	HTTPCodec codec.Codec
}

HTTP2RPC http to rpc handler

func (*HTTP2RPC) ServeHTTP added in v1.0.2

func (handler *HTTP2RPC) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP 将http请求转为rpc

Jump to

Keyboard shortcuts

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