Skip to content
Permalink
Browse files

Pull headers section out into its own thing

  • Loading branch information...
paulcsmith committed Sep 9, 2019
1 parent 0e2ccf3 commit 834a37cf92ab31bfbbb9598fc858435ffa191fdb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/actions/guides/http_and_routing/request_and_response.cr
@@ -38,6 +38,8 @@ class Guides::HttpAndRouting::RequestAndResponse < GuideAction
end
```
## HTTP Headers
### Accessing Headers
If you need to access or set the headers, you can use `request.headers` or `response.headers`.
@@ -56,8 +58,6 @@ class Guides::HttpAndRouting::RequestAndResponse < GuideAction
end
```
Read more about working with headers in the [Crystal docs on HTTP::Headers](https://crystal-lang.org/api/0.30.1/HTTP/Headers.html)
### Setting Response Headers
For things like handling CORS, and many other operations like caching,

0 comments on commit 834a37c

Please sign in to comment.
You can’t perform that action at this time.