From 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 15:59:29 -0700 Subject: pull request, response, handlers out of the gemini package --- gemini/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gemini/client.go') diff --git a/gemini/client.go b/gemini/client.go index 0e8dd07..4f99078 100644 --- a/gemini/client.go +++ b/gemini/client.go @@ -6,6 +6,8 @@ import ( "errors" "io" "net" + + "tildegit.org/tjp/gus" ) // Client is used for sending gemini requests and parsing gemini responses. @@ -31,7 +33,7 @@ func NewClient(tlsConf *tls.Config) Client { // // This method will not automatically follow redirects or cache permanent failures or // redirects. -func (client Client) RoundTrip(request *Request) (*Response, error) { +func (client Client) RoundTrip(request *gus.Request) (*gus.Response, error) { if request.Scheme != "gemini" && request.Scheme != "" { return nil, errors.New("non-gemini protocols not supported") } -- cgit v1.2.3