http

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var STYLES = fmt.Sprintf("<style>%s</style>", styles)

Functions

func CreateHTTPServer added in v0.0.2

func CreateHTTPServer(server config.ServerConfig) *http.Server

Types

type HTMLWriter

type HTMLWriter struct {
	// contains filtered or unexported fields
}

func (*HTMLWriter) Finish

func (h *HTMLWriter) Finish()

func (*HTMLWriter) Handle

func (h *HTMLWriter) Handle(line gemini.Line)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func CreateHandler

func CreateHandler(host string) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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