simpleHTTP

package
v0.0.0-...-0777535 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteRead

func RemoteRead(w http.ResponseWriter, r *http.Request)

func RemoteWrite

func RemoteWrite(w http.ResponseWriter, r *http.Request)

func Server

func Server(endpoint string)

Server starts an HTTP listener on endpoint and waits for connections. This function simply calls ServerTLS without any certificates.

func ServerTLS

func ServerTLS(endpoint string, caCertFile string, certFile string, keyFile string)

ServerTLS starts an HTTP or HTTPS listener on endpoint and waits for connections.

If endpoint is unspecified, ":12350" is used.

If a server certificate is specified, HTTPS is enabled. Simple HTTP is used otherwise.

If a CA certificate is specified, mTLS (mutual TLS) is enabled. Connecting clients must pass a valid client certificate signed by the CA.

Types

This section is empty.

Jump to

Keyboard shortcuts

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