nhttpd

package
v0.5.2-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Httpd

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

Httpd struct

func GetServer

func GetServer() *Httpd

func (*Httpd) AddOrigin

func (h *Httpd) AddOrigin(origin string)

func (*Httpd) AddView

func (h *Httpd) AddView(path string, view ViewFunc)

func (*Httpd) GetAddr

func (h *Httpd) GetAddr() string

func (*Httpd) GetScheme

func (h *Httpd) GetScheme() string

func (*Httpd) ServeIfNot

func (h *Httpd) ServeIfNot() chan error

func (*Httpd) SetAddr

func (h *Httpd) SetAddr(addr string)

func (*Httpd) SetSecure

func (h *Httpd) SetSecure(cert string, key string)

func (*Httpd) Shutdown

func (h *Httpd) Shutdown() error

func (*Httpd) ValidateOrigin

func (h *Httpd) ValidateOrigin(r *http.Request) bool

type ViewFunc

type ViewFunc func(w http.ResponseWriter, r *http.Request, matches [][]string)

Jump to

Keyboard shortcuts

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