ape

package module
v0.0.0-...-942f313 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: MIT Imports: 6 Imported by: 0

README

ape

Minimalist Web Service Abstraction

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router *httprouter.Router
}

Server type is an instance of httprouter

func New

func New() *Server

New Create a new Ape Server

func (*Server) RunHTTP

func (s *Server) RunHTTP(addr string, readTimeout, writeTimeout int)

RunHTTP startthe http server addr is the TCP address to listen on. readTimeout is the max duration before timing out read of the request in secs writeTimeout is the max duration before timing out write of the response in secs

Jump to

Keyboard shortcuts

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