package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Mar 15, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetBodyCodec(contentTypeBytes []byte) byte
GetBodyCodec returns the codec id from content type.
func RegBodyCodec(contentType string, codecId byte)
RegBodyCodec registers a mapping of content type to body coder.
Serve starts HTTP gateway service.
type OuterHttpSrvConfig struct {
ListenAddress string `yaml:"listen_address"`
TlsCertFile string `yaml:"tls_cert_file"`
TlsKeyFile string `yaml:"tls_key_file"`
AllowCross bool `yaml:"allow_cross"`
}
OuterHttpSrvConfig config of HTTP server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.