Update documentation
This commit is contained in:
		
							parent
							
								
									e20b8a0a5e
								
							
						
					
					
						commit
						e6f70cf697
					
				@ -74,7 +74,7 @@ func NewProxyRequest(host, rawurl string) (*Request, error) {
 | 
				
			|||||||
	}, nil
 | 
						}, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Do completes a request.
 | 
					// Do sends a Gemini request and returns a Gemini response.
 | 
				
			||||||
func (c *Client) Do(req *Request) (*Response, error) {
 | 
					func (c *Client) Do(req *Request) (*Response, error) {
 | 
				
			||||||
	host := req.Host
 | 
						host := req.Host
 | 
				
			||||||
	if strings.LastIndex(host, ":") == -1 {
 | 
						if strings.LastIndex(host, ":") == -1 {
 | 
				
			||||||
 | 
				
			|||||||
@ -105,7 +105,7 @@ func (s *Server) Serve(ln net.Listener) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Handler handles a url with a response.
 | 
					// A Handler responds to a Gemini request.
 | 
				
			||||||
type Handler interface {
 | 
					type Handler interface {
 | 
				
			||||||
	// Serve accepts a url, as that is the only information that is provided in
 | 
						// Serve accepts a url, as that is the only information that is provided in
 | 
				
			||||||
	// a Gemini request.
 | 
						// a Gemini request.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user