http

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server serves HTTP requests and calls the given callable

func NewServer

func NewServer(cmd runnable.Runnable, cfg *config.Config) *Server

NewServer creates a new HTTP server for a given Callable

func (*Server) ListenAndServe

func (server *Server) ListenAndServe() error

ListenAndServe starts the HTTP server

func (*Server) ServeHTTP

func (server *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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