An HTTP Server in GO
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/servito
debugHandlers
example
.gitignore
.travis.yml
LICENSE
README.MD
config.go
config_test.go
defaultConfig.json
health_test.go
routes.go
servito.go

README.MD

Servito

Build Status GoDoc

A small HTTP server in Go. A great start for small projects and prototyping.

Install

$ go get github.com/ghawk1ns/servito

Example

https://github.com/GHawk1ns/Servito/blob/master/example/main.go

Config

You can set these values individually or pass servito a JSON string, file, or path to a json file

{
  "debug": true,
  "address": string,
  "port": string,
  "readTimeout": int,
  "writeTimeout": int,
  "csrfEnable", bool,
  "CSRFKey", string
}