Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use process_request_url in docs instead of deprecated process_url #463

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/httpoison/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule HTTPoison.Base do

@endpoint "https://api.github.com"

def process_url(url) do
def process_request_url(url) do
@endpoint <> url
end
end
Expand All @@ -32,8 +32,8 @@ defmodule HTTPoison.Base do

# Called in order to process the url passed to any request method before
# actually issuing the request.
@spec process_url(binary) :: binary
def process_url(url)
@spec process_request_url(binary) :: binary
def process_request_url(url)

# Called to arbitrarily process the request body before sending it with the
# request.
Expand Down