httpserver

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(status string, data interface{}) string

Types

type ResponseWriteTracker

type ResponseWriteTracker struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*ResponseWriteTracker) Write

func (w *ResponseWriteTracker) Write(p []byte) (int, error)

func (*ResponseWriteTracker) WriteHeader

func (w *ResponseWriteTracker) WriteHeader(code int)

type Server

type Server struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) Listen

func (s *Server) Listen(addr string) error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

func (*Server) ListenURL

func (s *Server) ListenURL() string

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) ServeHTTP

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

func (*Server) SetTLS

func (s *Server) SetTLS(keyFile, certFile string)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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