diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-10-27 12:53:33 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-10-27 12:53:33 +0200 |
commit | d70261286c1b3ae2a7d81d79d74097755bbf3c43 (patch) | |
tree | b702da73e677d01d58d440a0f5f0b34823b762b8 /status.go | |
parent | Small fix in docs (diff) | |
download | fasthttp-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.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 == "" { |