summaryrefslogtreecommitdiff
path: root/gemini/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemini/request.go')
-rw-r--r--gemini/request.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/gemini/request.go b/gemini/request.go
index 248ce67..43ee69b 100644
--- a/gemini/request.go
+++ b/gemini/request.go
@@ -5,6 +5,7 @@ import (
"crypto/tls"
"errors"
"io"
+ "net"
"net/url"
)
@@ -15,7 +16,9 @@ var InvalidRequestLineEnding = errors.New("invalid request line ending")
type Request struct {
*url.URL
- TLSState *tls.ConnectionState
+ Server *Server
+ RemoteAddr net.Addr
+ TLSState *tls.ConnectionState
}
// ParseRequest parses a single gemini request from a reader.