Versions in this module Expand all Collapse all v1 v1.2.0 Feb 4, 2026 Changes in this version + const HTTP_HEAD_KEY_DEBUG_KEY + const RPC_CONTEXT_KEY_HEADER + const SettingKeyAddr + const SettingKeyCertFile + const SettingKeyDebugKey + const SettingKeyEncryptKey + const SettingKeyIdleTimeout + const SettingKeyKeyFile + const SettingKeyMaxHeaderBytes + const SettingKeyReadTimeout + const SettingKeyTLS + const SettingKeyWriteTimeout + var DefaultRoute = func(r *http.Request) (*Service, error) + var DefaultTransfe = func(service *Service, req *Request, rsp *Response) error + func BadRequest(id, format string, a ...any) error + func Conflict(id, format string, a ...any) error + func ContextValHeader(ctx context.Context) map[string]*Pair + func Forbidden(id, format string, a ...any) error + func HttpHead(head map[string]*Pair) mqrpc.IMarshaler + func InternalServerError(id, format string, a ...any) error + func MethodNotAllowed(id, format string, a ...any) error + func NewError(id, detail string, code int32) error + func NotFound(id, format string, a ...any) error + func Timeout(id, format string, a ...any) error + func Unauthorized(id, format string, a ...any) error + type Error struct + Code int32 + Detail string + Id string + Status string + func ParseError(err string) *Error + func (e *Error) Error() string + type Event struct + Data string + Header map[string]*Pair + Id string + Name string + Timestamp int64 + type Option func(*Options) + func Addr(addr string) Option + func CertFile(certFile string) Option + func DebugKey(key string) Option + func EncryptKey(key string) Option + func IdleTimeout(timeout time.Duration) Option + func KeyFile(keyFile string) Option + func MaxHeaderBytes(bytes int) Option + func ReadTimeout(timeout time.Duration) Option + func Route(s Router) Option + func ServerOpts(s []server.Option) Option + func TLS(enable bool) Option + func Transfers(t Transfer) Option + func WriteTimeout(timeout time.Duration) Option + type Options struct + Addr string + CertFile string + DebugKey string + EncryptKey string + IdleTimeout time.Duration + KeyFile string + MaxHeaderBytes int + Opts []server.Option + ReadTimeout time.Duration + Route Router + TLS bool + Transfer Transfer + WriteTimeout time.Duration + func NewOptions(opts ...Option) Options + type Pair struct + Key string + Values []string + type Request struct + Body string + Get map[string]*Pair + Header map[string]*Pair + Method string + Path string + Post map[string]*Pair + Url string + type Response struct + Body string + Header map[string]*Pair + StatusCode int32 + type Router func(r *http.Request) (*Service, error) + type Service struct + Server app.IModuleServerSession + Topic string + type Transfer func(service *Service, req *Request, rsp *Response) error