Skip to content

Commit

Permalink
Merge pull request #221 from efectn/tagreqheaders
Browse files Browse the repository at this point in the history
Tagreqheaders
  • Loading branch information
ReneWerner87 committed Dec 31, 2021
2 parents 421b355 + 16e7474 commit eeb35ca
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions api/ctx.md
Expand Up @@ -523,6 +523,26 @@ func (c *Ctx) Fresh() bool
```
{% endcode %}

## GetReqHeaders

Returns the HTTP request headers.

{% code title="Signature" %}
```go
func (c *Ctx) GetReqHeaders() map[string]string
```
{% endcode %}

## GetRespHeaders

Returns the HTTP response headers.

{% code title="Signature" %}
```go
func (c *Ctx) GetRespHeaders() map[string]string
```
{% endcode %}

## Get

Returns the HTTP request header specified by the field.
Expand Down
1 change: 1 addition & 0 deletions api/middleware/logger.md
Expand Up @@ -146,6 +146,7 @@ const (
TagLatency = "latency"
TagStatus = "status" // response status
TagResBody = "resBody" // response body
TagReqHeaders = "reqHeaders"
TagQueryStringParams = "queryParams" // request query parameters
TagBody = "body" // request body
TagBytesSent = "bytesSent"
Expand Down

0 comments on commit eeb35ca

Please sign in to comment.