example

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL