Skip to content

Conversation

@Syuparn
Copy link
Owner

@Syuparn Syuparn commented Dec 2, 2024

add function header() to get request headers

GET("/request-ids") { b["request_id"]=header("request-id"); res(200, b) }
$ curl localhost:8080/request-ids -H 'request-id: foo'
{"request_id":"foo"}

@Syuparn Syuparn merged commit 0cfd1d0 into main Dec 2, 2024
1 check passed
@Syuparn Syuparn deleted the add-headers branch December 2, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants