package http

import "go.dedis.ch/dela/mino/proxy/http"

Index

Functions

func NewHTTP

func NewHTTP(listenAddr string) proxy.Proxy

NewHTTP creates a new proxy http

Types

type HTTP

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

HTTP defines a proxy http

- implements proxy.Proxy

func (HTTP) GetAddr

func (h HTTP) GetAddr() net.Addr

GetAddr implements proxy.Proxy.

func (*HTTP) Listen

func (h *HTTP) Listen()

Listen implements proxy.Proxy. This function can be called multiple times provided the server is not running, ie. Stop() has been called.

func (HTTP) RegisterHandler

func (h HTTP) RegisterHandler(path string, handler func(http.ResponseWriter,
	*http.Request))

RegisterHandler implements proxy.Proxy

func (HTTP) Stop

func (h HTTP) Stop()

Stop implements proxy.Proxy. It should be called only once in order to make a new Listen() successful.

Source Files

mod.go

Directories

PathSynopsis
mino/proxy/http/controller
Version
v0.1.0 (latest)
Published
Apr 10, 2024
Platform
linux/amd64
Imports
9 packages
Last checked
1 month ago

Tools for package owners.