Documentation
¶
Index ¶
- type Acceptance400
- type AutoVideoTask
- type CloseTask
- type CustomRangeTask
- type DefaultHomeTask
- type DefaultTask
- type LongTask
- type Route
- type Routine
- type SSE
- type ServerChildCountHandler
- func (h *ServerChildCountHandler) Active(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Deregister(ctx channel.HandlerContext, future channel.Future)
- func (h *ServerChildCountHandler) Disconnect(ctx channel.HandlerContext, future channel.Future)
- func (h *ServerChildCountHandler) Inactive(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Registered(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Unregistered(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Write(ctx channel.HandlerContext, obj any, future channel.Future)
- type VideoTaskDisableAutoRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acceptance400 ¶
type Acceptance400 struct {
ghttp.DispatchAcceptance
}
type AutoVideoTask ¶ added in v1.11.2
type AutoVideoTask struct {
ghttp.DefaultHTTPHandlerTask
// contains filtered or unexported fields
}
AutoVideoTask demonstrates automatic Range request handling
func (*AutoVideoTask) Get ¶ added in v1.11.2
func (h *AutoVideoTask) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse
type CloseTask ¶
type CloseTask struct {
ghttp.DefaultHTTPHandlerTask
}
type CustomRangeTask ¶ added in v1.11.2
type CustomRangeTask struct {
ghttp.DefaultHTTPHandlerTask
// contains filtered or unexported fields
}
CustomRangeTask shows custom Range handling with ParseRange
func (*CustomRangeTask) EnableAutoRangeSupport ¶ added in v1.11.2
func (h *CustomRangeTask) EnableAutoRangeSupport() bool
func (*CustomRangeTask) Get ¶ added in v1.11.2
func (h *CustomRangeTask) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse
type DefaultHomeTask ¶
type DefaultHomeTask struct {
ghttp.DefaultHTTPHandlerTask
}
func (*DefaultHomeTask) Get ¶
func (l *DefaultHomeTask) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse
type DefaultTask ¶
type DefaultTask struct {
ghttp.DefaultHTTPHandlerTask
}
func (*DefaultTask) Get ¶
func (l *DefaultTask) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse
func (*DefaultTask) Post ¶
func (l *DefaultTask) Post(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse
type LongTask ¶
type LongTask struct {
ghttp.DefaultHTTPHandlerTask
}
type Routine ¶
type Routine struct {
ghttp.DefaultHTTPHandlerTask
}
type SSE ¶
type SSE struct {
ghttp.DefaultHTTPHandlerTask
}
type ServerChildCountHandler ¶
type ServerChildCountHandler struct {
channel.DefaultHandler
// contains filtered or unexported fields
}
func (*ServerChildCountHandler) Active ¶
func (h *ServerChildCountHandler) Active(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Deregister ¶
func (h *ServerChildCountHandler) Deregister(ctx channel.HandlerContext, future channel.Future)
func (*ServerChildCountHandler) Disconnect ¶
func (h *ServerChildCountHandler) Disconnect(ctx channel.HandlerContext, future channel.Future)
func (*ServerChildCountHandler) Inactive ¶
func (h *ServerChildCountHandler) Inactive(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Registered ¶
func (h *ServerChildCountHandler) Registered(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Unregistered ¶
func (h *ServerChildCountHandler) Unregistered(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Write ¶
func (h *ServerChildCountHandler) Write(ctx channel.HandlerContext, obj any, future channel.Future)
type VideoTaskDisableAutoRange ¶ added in v1.11.2
type VideoTaskDisableAutoRange struct {
ghttp.DefaultHTTPHandlerTask
// contains filtered or unexported fields
}
VideoTaskDisableAutoRange shows how to disable auto Range
func (*VideoTaskDisableAutoRange) EnableAutoRangeSupport ¶ added in v1.11.2
func (h *VideoTaskDisableAutoRange) EnableAutoRangeSupport() bool
func (*VideoTaskDisableAutoRange) Get ¶ added in v1.11.2
func (h *VideoTaskDisableAutoRange) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse
Click to show internal directories.
Click to hide internal directories.