aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-20 13:37:08 -0500
committerAdnan Maolood <[email protected]>2021-02-20 15:34:21 -0500
commit3f4fd10b6d92ec45dad3788770a90127da57ca17 (patch)
tree7d989682ab2c33032349e49b211c036e1c3b2f4f /request.go
parentserver: Make Request.RemoteAddr a string (diff)
downloadarchived-go-gemini-3f4fd10b6d92ec45dad3788770a90127da57ca17.tar.xz
archived-go-gemini-3f4fd10b6d92ec45dad3788770a90127da57ca17.zip
client: Make Get and Do accept a Context
This removes the need for Request.Context.
Diffstat (limited to 'request.go')
-rw-r--r--request.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/request.go b/request.go
index 2d10f50..b50176f 100644
--- a/request.go
+++ b/request.go
@@ -2,7 +2,6 @@ package gemini
import (
"bufio"
- "context"
"crypto/tls"
"io"
"net/url"
@@ -48,14 +47,6 @@ type Request struct {
// otherwise it leaves the field nil.
// This field is ignored by the Gemini client.
TLS *tls.ConnectionState
-
- // Context specifies the context to use for outgoing requests.
- // The context controls the entire lifetime of a request and its
- // response: obtaining a connection, sending the request, and
- // reading the response header and body.
- // If Context is nil, the background context will be used.
- // This field is ignored by the Gemini server.
- Context context.Context
}
// NewRequest returns a new request.