diff options
| author | Adnan Maolood <[email protected]> | 2021-02-20 13:37:08 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-20 15:34:21 -0500 |
| commit | 3f4fd10b6d92ec45dad3788770a90127da57ca17 (patch) | |
| tree | 7d989682ab2c33032349e49b211c036e1c3b2f4f /request.go | |
| parent | server: Make Request.RemoteAddr a string (diff) | |
| download | archived-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.go | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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. |