libFastHttpImpl

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFastHttpServer

func GetFastHttpServer(serverPort int) httpServer.HttpServer

func UnsafeBytes

func UnsafeBytes(s string) []byte

UnsafeBytes returns a byte pointer without allocation.

func UnsafeString

func UnsafeString(b []byte) string

UnsafeString returns a string pointer without allocation

Types

type FastHttpServer added in v2.0.4

type FastHttpServer struct {
	// contains filtered or unexported fields
}

func NewFastHttpServer

func NewFastHttpServer(port int) *FastHttpServer

func (*FastHttpServer) GetHost added in v2.0.4

func (m *FastHttpServer) GetHost(hostName string) *httpServer.HttpHost

func (*FastHttpServer) GetPort added in v2.0.4

func (m *FastHttpServer) GetPort() int

func (*FastHttpServer) IsStarted added in v2.0.4

func (m *FastHttpServer) IsStarted() bool

func (*FastHttpServer) SetStartServerParams added in v2.0.4

func (m *FastHttpServer) SetStartServerParams(params httpServer.StartParams)

func (*FastHttpServer) Shutdown added in v2.0.4

func (m *FastHttpServer) Shutdown()

func (*FastHttpServer) StartServer added in v2.0.4

func (m *FastHttpServer) StartServer() error

Jump to

Keyboard shortcuts

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