phoenix-conn: fix arrows

This commit is contained in:
Rico Sta. Cruz 2017-09-04 11:41:17 +08:00
parent f6f28d8d13
commit 9b2ceacbc9
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 16 additions and 16 deletions

View File

@ -13,16 +13,16 @@ Request
{: .-prime} {: .-prime}
```elixir ```elixir
conn.host #=> "example.com" conn.host # "example.com"
conn.method #=> "GET" conn.method # "GET"
conn.path_info #=> ["posts", "1"] conn.path_info # ["posts", "1"]
conn.request_path #=> "/posts/1" conn.request_path # "/posts/1"
conn.query_string #=> "utm_source=twitter" conn.query_string # "utm_source=twitter"
conn.port #=> 80 conn.port # 80
conn.scheme #=> :http conn.scheme # :http
conn.peer #=> { {127, 0, 0, 1}, 12345 } conn.peer # { {127, 0, 0, 1}, 12345 }
conn.remote_ip #=> { 151, 236, 219, 228 } conn.remote_ip # { 151, 236, 219, 228 }
conn.req_headers #=> [{"content-type", "text/plain"}] conn.req_headers # [{"content-type", "text/plain"}]
``` ```
```elixir ```elixir
@ -45,11 +45,11 @@ Response
{: .-prime} {: .-prime}
```elixir ```elixir
conn.resp_body #=> "..." conn.resp_body # "..."
conn.resp_charset #=> "utf-8" conn.resp_charset # "utf-8"
conn.resp_cookies #=> ... conn.resp_cookies # ...
conn.resp_headers #=> ... conn.resp_headers # ...
conn.status #=> ... conn.status # ...
``` ```
### Sending responses ### Sending responses
@ -134,7 +134,7 @@ conn.state # :unset, :set, :file, :sent, :chunked
```js ```js
plug :accepts, ["html", "json"] plug :accepts, ["html", "json"]
conn |> accepts(["html", "json"]) conn |> accepts(["html", "json"])
get_format(conn) #=> "html" get_format(conn) # "html"
conn.accepts conn.accepts
``` ```