GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — teapot package - github.com/davsk/teapot - Go Packages

Details

  • unchecked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/davsk/teapot

Links

  • Open Source Insights Logo Open Source Insights

README ¶

teapot

Package teapot implements HTCPCP-TEA.

documentation:
  • https://godoc.org/github.com/davsk/teapot
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
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 ¶

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

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 ¶

View all Source files
  • teapot.go
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.