Fork of go-gemini
Go to file
Hugo Wetterberg de042e4724 client: set the client timout on the dialer, close connection on err
Client.Timout isn't respected for the dial. Requests will hang on dial
until OS-level timouts kick in unless there is a Request.Context with
a deadline. We also fail to close the connection on errors.

This change sets the client timeout as the dialer timeout so that it
will be respected. It also ensures that we close the connection if we
fail to make the request.
2021-01-13 17:13:56 -05:00
examples Move tofu.go to a subpackage 2021-01-10 16:46:12 -05:00
tofu Move tofu.go to a subpackage 2021-01-10 16:46:12 -05:00
.gitignore
cert.go
client.go client: set the client timout on the dialer, close connection on err 2021-01-13 17:13:56 -05:00
doc.go Update documentation 2021-01-10 01:21:56 -05:00
fs.go Simplify ResponseWriter implementation 2021-01-10 00:50:35 -05:00
gemini.go Move documentation back to doc.go 2021-01-10 01:16:50 -05:00
go.mod
LICENSE
mux.go
query.go
README.md Update link to documentation 2021-01-10 00:55:39 -05:00
request.go Update comments 2021-01-10 01:07:38 -05:00
response.go Update comments 2021-01-10 01:07:38 -05:00
server.go Simplify ResponseWriter implementation 2021-01-10 00:50:35 -05:00
status.go
text.go
vendor.go

go-gemini

godocs.io

Package gemini implements the Gemini protocol in Go.

It aims to provide an API similar to that of net/http to make it easy to develop Gemini clients and servers.

Usage

import "git.sr.ht/~adnano/go-gemini"

Examples

There are a few examples provided in the examples directory. To run an example:

go run examples/server.go

Contributing

Send patches and questions to ~adnano/go-gemini-devel.

Subscribe to release announcements on ~adnano/go-gemini-announce.