teapot

package module
Version: v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: ISC Imports: 2 Imported by: 0

README

teapot

Package teapot implements HTCPCP-TEA.

documentation:
reference:
usage:
import (
  "net/http"
  "github.com/davsk.net/teapot"
)

init (
	http.HandleFunc("/teacup", teapot.Handler)
)

Documentation

Overview

Package teapot HTCPCP-TEA implementation.

by David Skinner.

reference:

https://www.ietf.org/rfc/rfc2324.txt
http://www.rfc-editor.org/rfc/rfc7168.txt
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Index

Constants

This section is empty.

Variables

View Source
var Langs = map[string]string{
	"af":  "Ek is kort en geset.",
	"sq":  "Unë jam i shkurtër dhe i shëndoshë.",
	"ar":  "أنا قصير وقوي البنية.",
	"hy":  "Ես կարճ եւ Գեր.",
	"az":  "Mən qısa və qalın edirəm.",
	"eu":  "Naiz labur eta Stout.",
	"be":  "Я коратка і тоўсты.",
	"bn":  "আমি ছোট এবং স্থুলকায় না.",
	"bs":  "Ja sam kratko i stout.",
	"bg":  "Аз съм кратък и як.",
	"ca":  "Jo sóc baix i robust.",
	"ceb": "Ako mao mubo ug magahi.",
	"zh":  "我是短而粗壮。",
	"hr":  "Ja sam kratko i krupna.",
	"cs":  "Já jsem krátký a tlustý.",
	"da":  "Jeg er kort og stout.",
	"nl":  "Ik ben kort en stout.",
	"en":  "I am short and stout.",
}
View Source
var TeaBags = []string{
	"/assam",
	"/ceylon-tea",
	"/darjeeling",
	"/earl-grey",
	"/lapsang-souchong",
	"/peppermint",
	"/yunnan",
}

Functions

func Handler

func Handler(rw http.ResponseWriter, req *http.Request)

Handler reports status error for inappropriate HTCPCP Request.

Types

This section is empty.

Notes

Bugs

  • Excessive use of the Sugar addition may cause the BREW request to exceed the segment size allowed by the transport layer, causing fragmentation and a delay in brewing.

Source Files

Jump to

Keyboard shortcuts

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