64 lines
2.1 KiB
HTML
64 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>WriteFreely - URLSession</title>
|
||
<link rel="stylesheet" type="text/css" href="writefreely-swift/all.css" media="all" />
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<a href="writefreely-swift">
|
||
<strong>
|
||
WriteFreely
|
||
</strong>
|
||
<span>Documentation</span>
|
||
</a>
|
||
<sup>Beta</sup>
|
||
</header>
|
||
|
||
<!--
|
||
<form class="search">
|
||
<input type="search" placeholder="Search" />
|
||
</form>
|
||
-->
|
||
|
||
<nav>
|
||
<div class="wrapper">
|
||
<h2>On This Page</h2>
|
||
<ol><li><a href="#methods">Methods</a><ul><li class="function"><a href="#urlsession.datatask(with:completionhandler:)">dataTask(with:completionHandler:)</a></li></ul></li></ol>
|
||
</div>
|
||
</nav>
|
||
|
||
<main>
|
||
<article>
|
||
<h1>
|
||
<small>Extensions on</small>
|
||
<code class="name">URLSession</code>
|
||
</h1>
|
||
<section id="methods">
|
||
<h2>Methods</h2>
|
||
|
||
<div role="article" class="function" id="urlsession.datatask(with:completionhandler:)">
|
||
<h3>
|
||
<code>dataTask(with:completionHandler:)</code>
|
||
</h3>
|
||
<div class="declaration">
|
||
<pre class="highlight"><code><span class="keyword">public</span> <span class="keyword">func</span> <span class="function">dataTask</span>(
|
||
<span class="variable">with</span> <span class="variable">request</span>: <span class="type">URLRequest</span>,
|
||
<span class="variable">completionHandler</span>: <span class="attribute">@</span><span class="attribute">escaping</span> <span class="type">DataTaskResult</span>
|
||
) -> <span class="type">URLSessionDataTaskProtocol</span> </code></pre>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</article>
|
||
</main>
|
||
|
||
<footer>
|
||
<p>
|
||
Generated on <time datetime="2021-05-27T16:29:07-0400">May 27, 2021</time> using <a href="https://github.com/SwiftDocOrg/swift-doc">swift-doc</a> <span class="version">1.0.0-beta.6</span>.
|
||
</p>
|
||
</footer>
|
||
</body>
|
||
</html>
|