phoenix-conn: specify that get_req_header returns a list
This commit is contained in:
parent
e556b57688
commit
6f21603bb7
|
@ -26,7 +26,8 @@ conn.req_headers # → [{"content-type", "text/plain"}]
|
||||||
```
|
```
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
conn |> get_req_header("referer")
|
conn |> get_req_header("content-type")
|
||||||
|
# → ["text/plain"]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Updating conn
|
### Updating conn
|
||||||
|
|
Loading…
Reference in New Issue