Current section
Files
Jump to
Current section
Files
doc/Furlex.Oembed.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Furlex v0.5.0">
<title>Furlex.Oembed — Furlex v0.5.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-308f34ebd2.js"></script>
<script src="docs_config.js"></script>
<script async src="dist/app-60a0c9f10e9e52eae31f.js"></script>
</head>
<body data-type="modules">
<script>try { if(localStorage.getItem('night-mode') === 'true') document.body.className += ' night-mode'; } catch (e) { }</script>
<div class="main">
<button class="sidebar-button sidebar-toggle">
<span class="icon-menu" title="Collapse/expand sidebar"></span>
</button>
<section class="sidebar">
<form class="sidebar-search" action="search.html">
<button type="submit" class="search-button" aria-label="Submit Search">
<span class="icon-search" aria-hidden="true" title="Submit search"></span>
</button>
<button type="button" tabindex="-1" class="search-close-button" aria-label="Cancel Search">
<span class="icon-cross" aria-hidden="true" title="Cancel search"></span>
</button>
<label class="search-label">
<input name="q" type="text" id="search-list" class="search-input" placeholder="Search..." aria-label="Input your search terms" autocomplete="off" />
</label>
</form>
<div class="autocomplete">
<div class="autocomplete-results">
</div>
</div>
<div class="sidebar-header">
<div class="sidebar-projectDetails">
<a href="Furlex.html" class="sidebar-projectName">
Furlex </a>
<strong class="sidebar-projectVersion">
v0.5.0
</strong>
</div>
</div>
<ul class="sidebar-listNav">
<li><a id="extras-list" href="#full-list">Pages</a></li>
<li><a id="modules-list" href="#full-list">Modules</a></li>
</ul>
<div class="gradient"></div>
<ul id="full-list" class="sidebar-fullList"></ul>
</section>
<section class="content">
<div class="content-outer">
<div id="content" class="content-inner">
<h1>
Furlex.Oembed <small class="app-vsn">(Furlex v0.5.0)</small>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</h1>
<section id="moduledoc">
<p>A module for managing oembed data</p> </section>
<section id="summary" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#summary">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this section</span>
</a>
Summary
</h1>
<div class="summary-types summary">
<h2>
<a href="#types">Types</a>
</h2>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:body/0">body()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:headers/0">headers()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:method/0">method()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:options/0">options()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:params/0">params()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:request/0">request()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#t:url/0">url()</a>
</div>
</div>
</div>
<div class="summary-functions summary">
<h2>
<a href="#functions">Functions</a>
</h2>
<div class="summary-row">
<div class="summary-signature">
<a href="#child_spec/1">child_spec(init_arg)</a>
</div>
<div class="summary-synopsis"><p>Returns a specification to start this module under a supervisor.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#delete/3">delete(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a DELETE request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#delete!/3">delete!(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a DELETE request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#endpoint_from_url/3">endpoint_from_url(url, params \\ %{"format" => "json"}, opts \\ [])</a>
</div>
<div class="summary-synopsis"><p>Returns an Oembed endpoint for the given url</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#fetch_providers/1">fetch_providers(type \\ :soft)</a>
</div>
<div class="summary-synopsis"><p>Fetches the list of Oembed providers</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#get/3">get(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a GET request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#get!/3">get!(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a GET request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#head/3">head(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a HEAD request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#head!/3">head!(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a HEAD request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#init/1">init(state)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/elixir/GenServer.html#c:init/1"><code class="inline">GenServer.init/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#options/3">options(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues an OPTIONS request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#options!/3">options!(url, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a OPTIONS request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#patch/4">patch(url, body, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a PATCH request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#patch!/4">patch!(url, body, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a PATCH request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#post/4">post(url, body, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a POST request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#post!/4">post!(url, body, headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a POST request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_headers/1">process_headers(headers)</a>
<span class="deprecated" title="Use process_response_headers/1 instead">deprecated</span>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_headers/1"><code class="inline">HTTPoison.Base.process_headers/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_request_body/1">process_request_body(body)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_body/1"><code class="inline">HTTPoison.Base.process_request_body/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_request_headers/1">process_request_headers(headers)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_headers/1"><code class="inline">HTTPoison.Base.process_request_headers/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_request_options/1">process_request_options(options)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_options/1"><code class="inline">HTTPoison.Base.process_request_options/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_request_params/1">process_request_params(params)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_params/1"><code class="inline">HTTPoison.Base.process_request_params/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_request_url/1">process_request_url(url)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_url/1"><code class="inline">HTTPoison.Base.process_request_url/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_response/1">process_response(response)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response/1"><code class="inline">HTTPoison.Base.process_response/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_response_body/1">process_response_body(body)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_body/1"><code class="inline">HTTPoison.Base.process_response_body/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_response_chunk/1">process_response_chunk(chunk)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_chunk/1"><code class="inline">HTTPoison.Base.process_response_chunk/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_response_headers/1">process_response_headers(headers)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_headers/1"><code class="inline">HTTPoison.Base.process_response_headers/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_response_status_code/1">process_response_status_code(status_code)</a>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_status_code/1"><code class="inline">HTTPoison.Base.process_response_status_code/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_status_code/1">process_status_code(status_code)</a>
<span class="deprecated" title="Use process_response_status_code/1 instead">deprecated</span>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_status_code/1"><code class="inline">HTTPoison.Base.process_status_code/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#process_url/1">process_url(url)</a>
<span class="deprecated" title="Use process_request_url/1 instead">deprecated</span>
</div>
<div class="summary-synopsis"><p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_url/1"><code class="inline">HTTPoison.Base.process_url/1</code></a>.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#put/4">put(url, body \\ "", headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a PUT request to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#put!/4">put!(url, body \\ "", headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues a PUT request to the given url, raising an exception in case of
failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#request/1">request(request)</a>
</div>
<div class="summary-synopsis"><p>Issues an HTTP request using a <code class="inline">Request</code> struct.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#request/5">request(method, url, body \\ "", headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues an HTTP request with the given method to the given url.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#request!/5">request!(method, url, body \\ "", headers \\ [], options \\ [])</a>
</div>
<div class="summary-synopsis"><p>Issues an HTTP request with the given method to the given url, raising an
exception in case of failure.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#start/0">start()</a>
</div>
<div class="summary-synopsis"><p>Starts HTTPoison and its dependencies.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#stream_next/1">stream_next(resp)</a>
</div>
<div class="summary-synopsis"><p>Requests the next message to be streamed for a given <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html"><code class="inline">HTTPoison.AsyncResponse</code></a>.</p></div>
</div>
</div>
</section>
<section id="types" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#types">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this section</span>
</a>
Types </h1>
<div class="types-list">
<section class="detail" id="t:body/0">
<div class="detail-header">
<a href="#t:body/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">body()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>body() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:body/0">HTTPoison.Base.body</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="t:headers/0">
<div class="detail-header">
<a href="#t:headers/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">headers()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>headers() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:headers/0">HTTPoison.Base.headers</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="t:method/0">
<div class="detail-header">
<a href="#t:method/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">method()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>method() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:method/0">HTTPoison.Base.method</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="t:options/0">
<div class="detail-header">
<a href="#t:options/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">options()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>options() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:options/0">HTTPoison.Base.options</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="t:params/0">
<div class="detail-header">
<a href="#t:params/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">params()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>params() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:params/0">HTTPoison.Base.params</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="t:request/0">
<div class="detail-header">
<a href="#t:request/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">request()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>request() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:request/0">HTTPoison.Base.request</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="t:url/0">
<div class="detail-header">
<a href="#t:url/0" class="detail-link" title="Link to this type">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this type</span>
</a>
<h1 class="signature">url()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>url() :: <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:url/0">HTTPoison.Base.url</a>()</pre>
</div>
</section>
</section>
</div>
</section>
<section id="functions" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#functions">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this section</span>
</a>
Functions </h1>
<div class="functions-list">
<section class="detail" id="child_spec/1">
<div class="detail-header">
<a href="#child_spec/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">child_spec(init_arg)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L6" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<p>Returns a specification to start this module under a supervisor.</p><p>See <a href="https://hexdocs.pm/elixir/Supervisor.html"><code class="inline">Supervisor</code></a>.</p> </section>
</section>
<section class="detail" id="delete/3">
<span id="delete/1"></span>
<span id="delete/2"></span>
<div class="detail-header">
<a href="#delete/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">delete(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>delete(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues a DELETE request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="delete!/3">
<span id="delete!/1"></span>
<span id="delete!/2"></span>
<div class="detail-header">
<a href="#delete!/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">delete!(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>delete!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()</pre>
</div>
<p>Issues a DELETE request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="endpoint_from_url/3">
<span id="endpoint_from_url/1"></span>
<span id="endpoint_from_url/2"></span>
<div class="detail-header">
<a href="#endpoint_from_url/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">endpoint_from_url(url, params \\ %{"format" => "json"}, opts \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L53" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<p>Returns an Oembed endpoint for the given url</p><h2 id="endpoint_from_url/3-examples" class="section-heading">
<a href="#endpoint_from_url/3-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<p> iex> Oembed.endpoint_from_url "<a href="https://vimeo.com/88856141%22">https://vimeo.com/88856141"</a></p><p> iex> Oembed.endpoint_from_url "<a href="https://vimeo.com/88856141%22,">https://vimeo.com/88856141",</a> %{"format" => "xml"}</p> </section>
</section>
<section class="detail" id="fetch_providers/1">
<span id="fetch_providers/0"></span>
<div class="detail-header">
<a href="#fetch_providers/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">fetch_providers(type \\ :soft)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L20" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>fetch_providers(Atom.t()) :: {:ok, List.t()} | {:error, Atom.t()}</pre>
</div>
<p>Fetches the list of Oembed providers</p><p>Soft fetch will fetch cached providers. Hard fetch requests
providers from oembed.com and purges the cache.</p> </section>
</section>
<section class="detail" id="get/3">
<span id="get/1"></span>
<span id="get/2"></span>
<div class="detail-header">
<a href="#get/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">get(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>get(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>() | <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues a GET request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="get!/3">
<span id="get!/1"></span>
<span id="get!/2"></span>
<div class="detail-header">
<a href="#get!/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">get!(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>get!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>() | <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()</pre>
</div>
<p>Issues a GET request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="head/3">
<span id="head/1"></span>
<span id="head/2"></span>
<div class="detail-header">
<a href="#head/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">head(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>head(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>() | <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues a HEAD request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="head!/3">
<span id="head!/1"></span>
<span id="head!/2"></span>
<div class="detail-header">
<a href="#head!/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">head!(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>head!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>() | <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()</pre>
</div>
<p>Issues a HEAD request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="init/1">
<div class="detail-header">
<a href="#init/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">init(state)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L99" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<p>Callback implementation for <a href="https://hexdocs.pm/elixir/GenServer.html#c:init/1"><code class="inline">GenServer.init/1</code></a>.</p> </section>
</section>
<section class="detail" id="options/3">
<span id="options/1"></span>
<span id="options/2"></span>
<div class="detail-header">
<a href="#options/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">options(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>options(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues an OPTIONS request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="options!/3">
<span id="options!/1"></span>
<span id="options!/2"></span>
<div class="detail-header">
<a href="#options!/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">options!(url, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>options!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()</pre>
</div>
<p>Issues a OPTIONS request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="patch/4">
<span id="patch/2"></span>
<span id="patch/3"></span>
<div class="detail-header">
<a href="#patch/4" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">patch(url, body, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>patch(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues a PATCH request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="patch!/4">
<span id="patch!/2"></span>
<span id="patch!/3"></span>
<div class="detail-header">
<a href="#patch!/4" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">patch!(url, body, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>patch!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()</pre>
</div>
<p>Issues a PATCH request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="post/4">
<span id="post/2"></span>
<span id="post/3"></span>
<div class="detail-header">
<a href="#post/4" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">post(url, body, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>post(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues a POST request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="post!/4">
<span id="post!/2"></span>
<span id="post!/3"></span>
<div class="detail-header">
<a href="#post!/4" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">post!(url, body, headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>post!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()</pre>
</div>
<p>Issues a POST request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="process_headers/1">
<div class="detail-header">
<a href="#process_headers/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_headers(headers)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<div class="deprecated">
This function is deprecated. Use process_response_headers/1 instead.
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_headers(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">list</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_headers/1"><code class="inline">HTTPoison.Base.process_headers/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_request_body/1">
<div class="detail-header">
<a href="#process_request_body/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_request_body(body)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_request_body(<a href="#t:body/0">body</a>()) :: <a href="#t:body/0">body</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_body/1"><code class="inline">HTTPoison.Base.process_request_body/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_request_headers/1">
<div class="detail-header">
<a href="#process_request_headers/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_request_headers(headers)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_request_headers(<a href="#t:headers/0">headers</a>()) :: <a href="#t:headers/0">headers</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_headers/1"><code class="inline">HTTPoison.Base.process_request_headers/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_request_options/1">
<div class="detail-header">
<a href="#process_request_options/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_request_options(options)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_request_options(<a href="#t:options/0">options</a>()) :: <a href="#t:options/0">options</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_options/1"><code class="inline">HTTPoison.Base.process_request_options/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_request_params/1">
<div class="detail-header">
<a href="#process_request_params/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_request_params(params)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_request_params(<a href="#t:params/0">params</a>()) :: <a href="#t:params/0">params</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_params/1"><code class="inline">HTTPoison.Base.process_request_params/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_request_url/1">
<div class="detail-header">
<a href="#process_request_url/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_request_url(url)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_request_url(<a href="#t:url/0">url</a>()) :: <a href="#t:url/0">url</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_request_url/1"><code class="inline">HTTPoison.Base.process_request_url/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_response/1">
<div class="detail-header">
<a href="#process_response/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_response(response)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_response(<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#t:response/0">HTTPoison.Base.response</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response/1"><code class="inline">HTTPoison.Base.process_response/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_response_body/1">
<div class="detail-header">
<a href="#process_response_body/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_response_body(body)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L115" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_response_body(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_body/1"><code class="inline">HTTPoison.Base.process_response_body/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_response_chunk/1">
<div class="detail-header">
<a href="#process_response_chunk/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_response_chunk(chunk)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_response_chunk(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_chunk/1"><code class="inline">HTTPoison.Base.process_response_chunk/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_response_headers/1">
<div class="detail-header">
<a href="#process_response_headers/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_response_headers(headers)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_response_headers(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">list</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_headers/1"><code class="inline">HTTPoison.Base.process_response_headers/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_response_status_code/1">
<div class="detail-header">
<a href="#process_response_status_code/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_response_status_code(status_code)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_response_status_code(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">integer</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_response_status_code/1"><code class="inline">HTTPoison.Base.process_response_status_code/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_status_code/1">
<div class="detail-header">
<a href="#process_status_code/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_status_code(status_code)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<div class="deprecated">
This function is deprecated. Use process_response_status_code/1 instead.
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_status_code(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">integer</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_status_code/1"><code class="inline">HTTPoison.Base.process_status_code/1</code></a>.</p> </section>
</section>
<section class="detail" id="process_url/1">
<div class="detail-header">
<a href="#process_url/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">process_url(url)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L111" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<div class="deprecated">
This function is deprecated. Use process_request_url/1 instead.
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>process_url(<a href="#t:url/0">url</a>()) :: <a href="#t:url/0">url</a>()</pre>
</div>
<p>Callback implementation for <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Base.html#c:process_url/1"><code class="inline">HTTPoison.Base.process_url/1</code></a>.</p> </section>
</section>
<section class="detail" id="put/4">
<span id="put/1"></span>
<span id="put/2"></span>
<span id="put/3"></span>
<div class="detail-header">
<a href="#put/4" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">put(url, body \\ "", headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>put(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues a PUT request to the given url.</p><p>Returns <code class="inline">{:ok, response}</code> if the request is successful, <code class="inline">{:error, reason}</code>
otherwise.</p><p>See <a href="#request/5"><code class="inline">request/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="put!/4">
<span id="put!/1"></span>
<span id="put!/2"></span>
<span id="put!/3"></span>
<div class="detail-header">
<a href="#put!/4" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">put!(url, body \\ "", headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>put!(<a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()</pre>
</div>
<p>Issues a PUT request to the given url, raising an exception in case of
failure.</p><p>If the request does not fail, the response is returned.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
<section class="detail" id="request/1">
<div class="detail-header">
<a href="#request/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">request(request)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>request(<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Request.html#t:t/0">HTTPoison.Request.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues an HTTP request using a <code class="inline">Request</code> struct.</p><p>This function returns <code class="inline">{:ok, response}</code>, <code class="inline">{:ok, async_response}</code>, or <code class="inline">{:ok, maybe_redirect}</code>
if the request is successful, <code class="inline">{:error, reason}</code> otherwise.</p><h2 id="request/1-redirect-handling" class="section-heading">
<a href="#request/1-redirect-handling" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Redirect handling
</h2>
<p>If the option <code class="inline">:follow_redirect</code> is given, HTTP redirects are automatically follow if
the method is set to <code class="inline">:get</code> or <code class="inline">:head</code> and the response's <code class="inline">status_code</code> is <code class="inline">301</code>, <code class="inline">302</code> or
<code class="inline">307</code>.</p><p>If the method is set to <code class="inline">:post</code>, then the only <code class="inline">status_code</code> that get's automatically
followed is <code class="inline">303</code>.</p><p>If any other method or <code class="inline">status_code</code> is returned, then this function returns a
returns a <code class="inline">{:ok, %HTTPoison.MaybeRedirect{}}</code> containing the <code class="inline">redirect_url</code> for you to
re-request with the method set to <code class="inline">:get</code>.</p><h2 id="request/1-examples" class="section-heading">
<a href="#request/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="n">request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p" data-group-id="9525004904-1">%</span><span class="nc" data-group-id="9525004904-1">HTTPoison.Request</span><span class="p" data-group-id="9525004904-1">{</span><span class="w">
</span><span class="ss">method</span><span class="p">:</span><span class="w"> </span><span class="ss">:post</span><span class="p">,</span><span class="w">
</span><span class="ss">url</span><span class="p">:</span><span class="w"> </span><span class="s">"https://my.website.com"</span><span class="p">,</span><span class="w">
</span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="s">"{</span><span class="se">\"</span><span class="s">foo</span><span class="se">\"</span><span class="s">: 3}"</span><span class="p">,</span><span class="w">
</span><span class="ss">headers</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9525004904-2">[</span><span class="p" data-group-id="9525004904-3">{</span><span class="s">"Accept"</span><span class="p">,</span><span class="w"> </span><span class="s">"application/json"</span><span class="p" data-group-id="9525004904-3">}</span><span class="p" data-group-id="9525004904-2">]</span><span class="w">
</span><span class="p" data-group-id="9525004904-1">}</span><span class="w">
</span><span class="n">request</span><span class="p" data-group-id="9525004904-4">(</span><span class="n">request</span><span class="p" data-group-id="9525004904-4">)</span></code></pre> </section>
</section>
<section class="detail" id="request/5">
<span id="request/2"></span>
<span id="request/3"></span>
<span id="request/4"></span>
<div class="detail-header">
<a href="#request/5" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">request(method, url, body \\ "", headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>request(<a href="#t:method/0">method</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
{:ok,
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()}
| {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Issues an HTTP request with the given method to the given url.</p><p>This function is usually used indirectly by <a href="#get/3"><code class="inline">get/3</code></a>, <a href="#post/4"><code class="inline">post/4</code></a>, <a href="#put/4"><code class="inline">put/4</code></a>, etc</p><p>Args:</p><ul><li><code class="inline">method</code> - HTTP method as an atom (<code class="inline">:get</code>, <code class="inline">:head</code>, <code class="inline">:post</code>, <code class="inline">:put</code>,
<code class="inline">:delete</code>, etc.)</li><li><code class="inline">url</code> - target url as a binary string or char list</li><li><code class="inline">body</code> - request body. See more below</li><li><code class="inline">headers</code> - HTTP headers as an orddict (e.g., <code class="inline">[{"Accept", "application/json"}]</code>)</li><li><code class="inline">options</code> - Keyword list of options</li></ul><p>Body: see type <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Request.html"><code class="inline">HTTPoison.Request</code></a></p><p>Options: see type <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Request.html"><code class="inline">HTTPoison.Request</code></a></p><p>This function returns <code class="inline">{:ok, response}</code>, <code class="inline">{:ok, async_response}</code>, or <code class="inline">{:ok, maybe_redirect}</code>
if the request is successful, <code class="inline">{:error, reason}</code> otherwise.</p><h2 id="request/5-redirect-handling" class="section-heading">
<a href="#request/5-redirect-handling" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Redirect handling
</h2>
<p>If the option <code class="inline">:follow_redirect</code> is given, HTTP redirects are automatically follow if
the method is set to <code class="inline">:get</code> or <code class="inline">:head</code> and the response's <code class="inline">status_code</code> is <code class="inline">301</code>, <code class="inline">302</code> or
<code class="inline">307</code>.</p><p>If the method is set to <code class="inline">:post</code>, then the only <code class="inline">status_code</code> that get's automatically
followed is <code class="inline">303</code>.</p><p>If any other method or <code class="inline">status_code</code> is returned, then this function returns a
returns a <code class="inline">{:ok, %HTTPoison.MaybeRedirect{}}</code> containing the <code class="inline">redirect_url</code> for you to
re-request with the method set to <code class="inline">:get</code>.</p><h2 id="request/5-examples" class="section-heading">
<a href="#request/5-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="n">request</span><span class="p" data-group-id="3300075197-1">(</span><span class="ss">:post</span><span class="p">,</span><span class="w"> </span><span class="s">"https://my.website.com"</span><span class="p">,</span><span class="w"> </span><span class="s">"{</span><span class="se">\"</span><span class="s">foo</span><span class="se">\"</span><span class="s">: 3}"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3300075197-2">[</span><span class="p" data-group-id="3300075197-3">{</span><span class="s">"Accept"</span><span class="p">,</span><span class="w"> </span><span class="s">"application/json"</span><span class="p" data-group-id="3300075197-3">}</span><span class="p" data-group-id="3300075197-2">]</span><span class="p" data-group-id="3300075197-1">)</span></code></pre> </section>
</section>
<section class="detail" id="request!/5">
<span id="request!/2"></span>
<span id="request!/3"></span>
<span id="request!/4"></span>
<div class="detail-header">
<a href="#request!/5" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">request!(method, url, body \\ "", headers \\ [], options \\ [])</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>request!(<a href="#t:method/0">method</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">binary</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="#t:headers/0">headers</a>(), <a href="https://hexdocs.pm/elixir/Keyword.html#t:t/0">Keyword.t</a>()) ::
<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Response.html#t:t/0">HTTPoison.Response.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()
| <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.MaybeRedirect.html#t:t/0">HTTPoison.MaybeRedirect.t</a>()</pre>
</div>
<p>Issues an HTTP request with the given method to the given url, raising an
exception in case of failure.</p><p><a href="#request!/5"><code class="inline">request!/5</code></a> works exactly like <a href="#request/5"><code class="inline">request/5</code></a> but it returns just the
response in case of a successful request, raising an exception in case the
request fails.</p> </section>
</section>
<section class="detail" id="start/0">
<div class="detail-header">
<a href="#start/0" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">start()</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<p>Starts HTTPoison and its dependencies.</p> </section>
</section>
<section class="detail" id="stream_next/1">
<div class="detail-header">
<a href="#stream_next/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature">stream_next(resp)</h1>
<a href="https://github.com/claytongentry/furlex/blob/master/lib/furlex/oembed.ex#L7" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<h2>Specs</h2>
<div class="specs">
<pre>stream_next(<a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()) ::
{:ok, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html#t:t/0">HTTPoison.AsyncResponse.t</a>()} | {:error, <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.Error.html#t:t/0">HTTPoison.Error.t</a>()}</pre>
</div>
<p>Requests the next message to be streamed for a given <a href="https://hexdocs.pm/httpoison/1.8.0/HTTPoison.AsyncResponse.html"><code class="inline">HTTPoison.AsyncResponse</code></a>.</p><p>See <a href="#request!/5"><code class="inline">request!/5</code></a> for more detailed information.</p> </section>
</section>
</div>
</section>
<footer class="footer">
<p>
<span class="line">
Built using
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener">ExDoc</a> (v0.23.0) for the
<a href="https://elixir-lang.org" title="Elixir" target="_blank">Elixir programming language</a>.
</span>
<span class="line">
Designed by
<a href="https://twitter.com/dignifiedquire" target="_blank" rel="noopener" title="@dignifiedquire">Friedel Ziegelmayer</a>.
</span>
</p>
<p>
<a href="api-reference.html" title="API reference" class="line footer-button">API Reference</a>
<button class="line footer-button display-shortcuts-help">
Display keyboard shortcuts
</button>
<button class="line footer-button night-mode-toggle">
Toggle night mode
</button>
<button class="line footer-button display-quick-switch">
Go to a HexDocs package
</button>
<button class="line footer-button tooltips-toggle">
<span class="tooltips-option-disable">Disable tooltips</span>
<span class="tooltips-option-enable">Enable tooltips</span>
</button>
</p>
</footer>
</div>
</div>
</section>
</div>
</body>
</html>