http

package
v0.0.0-...-cf97348 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: MIT Imports: 4 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 is an implementation of HTTP server that executes requests using Shezmu actors.

func NewServer

func NewServer(sv *shezmu.Shezmu, address string) *Server

NewServer creates a new server.

func (*Server) Delete

func (s *Server) Delete(path string, handle hr.Handle)

Delete installs a handler for DELETE requests.

func (*Server) Get

func (s *Server) Get(path string, handle hr.Handle)

Get installs a handler for GET requests.

func (*Server) Post

func (s *Server) Post(path string, handle hr.Handle)

Post installs a handler for POST requests.

func (*Server) Put

func (s *Server) Put(path string, handle hr.Handle)

Put installs a handler for PUT requests.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

Jump to

Keyboard shortcuts

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