Skip to content

Commit

Permalink
Merge pull request #366 from ryanwinchester/master
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
edgurgel authored Oct 16, 2018
2 parents 1db630f + 94ab534 commit e4df905
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ defmodule GitHub do
public_repos public_gists followers following created_at updated_at
)

def process_url(url) do
def process_request_url(url) do
"https://api.github.com" <> url
end

Expand All @@ -139,8 +139,6 @@ It's possible to extend the functions listed below:
```elixir
def process_request_body(body), do: body

def process_response_body(body), do: body

def process_request_headers(headers) when is_map(headers) do
Enum.into(headers, [])
end
Expand All @@ -149,13 +147,15 @@ def process_request_headers(headers), do: headers

def process_request_options(options), do: options

def process_response_chunk(chunk), do: chunk
def process_request_url(url), do: url

def process_headers(headers), do: headers
def process_response_body(body), do: body

def process_response_chunk(chunk), do: chunk

def process_status_code(status_code), do: status_code
def process_response_headers(headers), do: headers

def process_url(url), do: url
def process_response_status_code(status_code), do: status_code
```

### Async requests
Expand All @@ -176,7 +176,7 @@ iex> flush
**Warning: this option can flood a receiver in messages.**

If a server may send very large messages the `async: :once` option should be used.
This will send only a single chunk at a time the receiver can call `HTTPoison.stream_next/1` to indicate ability to process more chunks.
This will send only a single chunk at a time the receiver can call `HTTPoison.stream_next/1` to indicate ability to process more chunks.

### Cookies

Expand Down

0 comments on commit e4df905

Please sign in to comment.