Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServerDemo ¶
func NewHttpServerDemo(addr string)
Types ¶
type Controller ¶
type Controller func(request *simpleHttp.Request, response *simpleHttp.Response)
type HttpServerDemo ¶
type HttpServerDemo struct {
// contains filtered or unexported fields
}
func (*HttpServerDemo) AddController ¶
func (h *HttpServerDemo) AddController(path string, controller Controller)
func (*HttpServerDemo) Input ¶
func (h *HttpServerDemo) Input(context *event.HandleContext, request *simpleHttp.Request) (*simpleHttp.Request, bool)
func (*HttpServerDemo) Start ¶
func (h *HttpServerDemo) Start()
type SimpleHttpClient ¶
type SimpleHttpClient struct {
// contains filtered or unexported fields
}
func NewSimpleHttpClient ¶
func NewSimpleHttpClient() *SimpleHttpClient
func (*SimpleHttpClient) Connect ¶
func (s *SimpleHttpClient) Connect() *simpleHttp.Response
func (*SimpleHttpClient) Input ¶
func (s *SimpleHttpClient) Input(context *event.HandleContext, response *simpleHttp.Response) (any, bool)
Click to show internal directories.
Click to hide internal directories.