gemini

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: BSD-2-Clause Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Input               = 10
	SensitiveInput      = 11
	Success             = 20
	TemporaryRedirect   = 30
	PermanentRedirect   = 31
	TemporaryFailure    = 40
	ServerUnavailable   = 41
	CGIError            = 42
	ProxyError          = 43
	SlowDown            = 44
	PermanentFailure    = 50
	NotFound            = 51
	Gone                = 52
	ProxyRequestRefused = 53
	BadRequest          = 59
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capsule

type Capsule struct {
	Root string
	FS   fs.FS
}

func (*Capsule) Handle

func (c *Capsule) Handle(request string, w io.Writer) error

type Response added in v0.1.6

type Response struct {
	URL    *url.URL
	Raw    io.Reader
	Conn   *tls.Conn
	Status string
	Header string
}

func Request added in v0.1.6

func Request(ctx context.Context, rawURL string) (*Response, error)

func (*Response) Close added in v0.1.6

func (r *Response) Close()

func (*Response) Read added in v0.1.6

func (r *Response) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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