Versions in this module Expand all Collapse all v1 v1.0.20 Aug 16, 2026 Changes in this version + const ContentTypeJSON + const ContentTypeProtobuf + const Route + const TimeoutHeader + type Authenticator func(*http.Request) (*cproto.Session, error) + type Component struct + func NewComponent(name, address string, opts ...Option) *Component + func (c *Component) Handler() *Handler + func (c *Component) Init() + func (c *Component) Name() string + func (c *Component) OnAfterInit() + func (c *Component) OnStop() + type Handler struct + func NewHandler(app cfacade.IApplication, opts ...Option) *Handler + func (h *Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request) + type Option func(*Options) + func WithAuthenticator(authenticator Authenticator) Option + func WithMaxBodySize(size int64) Option + func WithMetadataHeaders(headers ...string) Option + func WithTimeout(defaultTimeout, maxTimeout time.Duration) Option + type Options struct + Authenticator Authenticator + DefaultTimeout time.Duration + MaxBodySize int64 + MaxTimeout time.Duration + MetadataHeaders []string