aboutsummaryrefslogtreecommitdiff
path: root/status.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-10-27 12:53:33 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-10-27 12:53:33 +0200
commitd70261286c1b3ae2a7d81d79d74097755bbf3c43 (patch)
treeb702da73e677d01d58d440a0f5f0b34823b762b8 /status.go
parentSmall fix in docs (diff)
downloadfasthttp-d70261286c1b3ae2a7d81d79d74097755bbf3c43.tar.gz
fasthttp-d70261286c1b3ae2a7d81d79d74097755bbf3c43.tar.bz2
fasthttp-d70261286c1b3ae2a7d81d79d74097755bbf3c43.zip
Added CopyTo, VisitAll and *Bytes* helper functions to Args, RequestHeader and ResponseHeader
Diffstat (limited to 'status.go')
-rw-r--r--status.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/status.go b/status.go
index fd0f26c..bfd09a2 100644
--- a/status.go
+++ b/status.go
@@ -5,7 +5,7 @@ import (
"sync/atomic"
)
-// stolen from net/http
+// HTTP status codes were stolen from net/http.
const (
StatusContinue = 100
StatusSwitchingProtocols = 101
@@ -106,6 +106,7 @@ var (
}
)
+// StatusMessage returns HTTP status message for the given status code.
func StatusMessage(statusCode int) string {
s := statusMessages[statusCode]
if s == "" {