Skip to content

efrainmunoz/http_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HttpClient

Make an http "GET" request to the specified url. The url should have a specified protocol (http or https).

iex> import HttpClient
iex> url = URI.parse "http://example.com"
iex> HttpClient.get url
{:ok, 200, "..."}

Make an http "GET"request to the specified url using the given proxy. The url should have a specified protocol (http or https).

iex> import HttpClient
iex> url = URI.parse "http://example.com"
iex> proxy = URI.parse "123.456.789.1:8080"
iex> HttpClient.get url, proxy
{:ok, 200, "..."}

Installation

If available in Hex, the package can be installed by adding http_client to your list of dependencies in mix.exs:

def deps do
  [
    {:http_client, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/http_client.

About

Just a simple wrapper around httpoison.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages