teapot: github.com/davsk/teapot Index | Files

package teapot

import "github.com/davsk/teapot"

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
https://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol#Protocol

Index

Package Files

teapot.go

Variables

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.",
}
var TeaBags = []string{
    "/assam",
    "/ceylon-tea",
    "/darjeeling",
    "/earl-grey",
    "/lapsang-souchong",
    "/peppermint",
    "/yunnan",
}

func Handler Uses

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

Handler reports status error for inappropriate HTCPCP Request.

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.

Package teapot imports 2 packages (graph). Updated 2018-05-17. Refresh now. Tools for package owners.