Skip to content

Commit

Permalink
Peek Cookie API
Browse files Browse the repository at this point in the history
  • Loading branch information
tianxiaoliang authored and erikdubbelboer committed Dec 1, 2017
1 parent 8aa7a87 commit 82bb5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions header.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func (h *ResponseHeader) SetStatusCode(statusCode int) {
h.statusCode = statusCode
}

// GetCookie is able to returns cookie by a given key.
func (h *ResponseHeader) GetCookie(key string) []byte {
// PeekCookie is able to returns cookie by a given key from response.
func (h *ResponseHeader) PeekCookie(key string) []byte {
return peekArgStr(h.cookies, key)
}

Expand Down

0 comments on commit 82bb5fe

Please sign in to comment.