diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-01-10 13:46:35 -0700 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-01-10 13:46:35 -0700 |
commit | 96f3a7607ffbdb349a4c2eff35efdf11b8d35a4e (patch) | |
tree | 8f1755bd3f3aedf33784f66aab9feccdd36c165e /gemini/request.go | |
parent | db7b6ef07254d61dee46a863786458e15a6459f6 (diff) |
Add a CGI contrib
Diffstat (limited to 'gemini/request.go')
-rw-r--r-- | gemini/request.go | 5 |
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. |