Update comments

This commit is contained in:
Adnan Maolood 2021-01-10 01:07:38 -05:00
parent d8c5da1c7c
commit 5e977250ec
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,6 @@ type Request struct {
Host string
// Certificate specifies the TLS certificate to use for the request.
// Request certificates take precedence over client certificates.
//
// On the server side, if the client provided a certificate then
// Certificate.Leaf is guaranteed to be non-nil.

View File

@ -13,7 +13,7 @@ type Response struct {
Status Status
// Meta contains more information related to the response status.
// For successful responses, Meta should contain the mimetype of the response.
// For successful responses, Meta should contain the media type of the response.
// For failure responses, Meta should contain a short description of the failure.
// Meta should not be longer than 1024 bytes.
Meta string
@ -115,7 +115,7 @@ func (b *readCloserBody) Read(p []byte) (n int, err error) {
return b.ReadCloser.Read(p)
}
// ResponseWriter is used by a Gemini handler to construct a Gemini response.
// ResponseWriter is used to construct a Gemini response.
type ResponseWriter struct {
b *bufio.Writer
status Status