aboutsummaryrefslogtreecommitdiff
path: root/response.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-01-10 01:07:38 -0500
committerAdnan Maolood <[email protected]>2021-01-10 01:07:38 -0500
commit5e977250ecdbf2ca033694d014d14466e54bb615 (patch)
tree1d02eee4fdbfebd98699af81c3d52d04576158aa /response.go
parentUpdate link to documentation (diff)
downloadgo-gemini-5e977250ecdbf2ca033694d014d14466e54bb615.tar.xz
go-gemini-5e977250ecdbf2ca033694d014d14466e54bb615.zip
Update comments
Diffstat (limited to 'response.go')
-rw-r--r--response.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/response.go b/response.go
index e603e3b..2d7cd7b 100644
--- a/response.go
+++ b/response.go
@@ -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