aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-21 17:36:09 -0400
committeradnano <[email protected]>2020-09-21 17:36:09 -0400
commite6f70cf6974595115e776b718f553e66f92ea30b (patch)
tree29614d339dbae0a354fab3616d964145c7b501e0
parentAdd examples (diff)
downloadgo-gemini-e6f70cf6974595115e776b718f553e66f92ea30b.tar.xz
go-gemini-e6f70cf6974595115e776b718f553e66f92ea30b.zip
Update documentation
-rw-r--r--client.go2
-rw-r--r--server.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/client.go b/client.go
index 9609ac5..1b46ea0 100644
--- a/client.go
+++ b/client.go
@@ -74,7 +74,7 @@ func NewProxyRequest(host, rawurl string) (*Request, error) {
}, nil
}
-// Do completes a request.
+// Do sends a Gemini request and returns a Gemini response.
func (c *Client) Do(req *Request) (*Response, error) {
host := req.Host
if strings.LastIndex(host, ":") == -1 {
diff --git a/server.go b/server.go
index 785add3..e039f67 100644
--- a/server.go
+++ b/server.go
@@ -105,7 +105,7 @@ func (s *Server) Serve(ln net.Listener) error {
}
}
-// Handler handles a url with a response.
+// A Handler responds to a Gemini request.
type Handler interface {
// Serve accepts a url, as that is the only information that is provided in
// a Gemini request.