echoserver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Echoserver

func Echoserver(port int, delayMillis int, out io.Writer) (func() error, error)

Types

type RequestEcho

type RequestEcho struct {
	Time        string            `json:"time"`
	ID          string            `json:"id"`
	RemoteIP    string            `json:"remote_ip"`
	Host        string            `json:"host"`
	Method      string            `json:"method"`
	URI         string            `json:"uri"`
	UserAgent   string            `json:"user_agent"`
	Status      int               `json:"status"`
	Headers     map[string]string `json:"headers"`
	RequestBody string            `json:"request_body"`
}

Jump to

Keyboard shortcuts

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