mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
d928617b69
* change strictFields cli option default to True; * use katip logging; add cli-option for monad-logger * fix date parsing * remove package.yaml
4 lines
44 KiB
HTML
4 lines
44 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>SwaggerPetstore.Client</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
|
|
window.onload = function () {pageLoad();setSynopsis("mini_SwaggerPetstore-Client.html");};
|
|
//]]>
|
|
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/SwaggerPetstore.Client.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">swagger-petstore-0.1.0.0: Auto-generated swagger-petstore API Client</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">SwaggerPetstore.Client</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Config</a></li><li><a href="#g:2">Dispatch</a><ul><li><a href="#g:3">Lbs</a></li><li><a href="#g:4">Mime</a></li><li><a href="#g:5">Unsafe</a></li></ul></li><li><a href="#g:6">InitRequest</a><ul><li><a href="#g:7">Logging </a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> = <a href="#v:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> {<ul class="subs"><li><a href="#v:configHost">configHost</a> :: <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li><a href="#v:configUserAgent">configUserAgent</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a></li><li><a href="#v:configLogExecWithContext">configLogExecWithContext</a> :: <a href="SwaggerPetstore-Logging.html#t:LogExecWithContext">LogExecWithContext</a></li><li><a href="#v:configLogContext">configLogContext</a> :: <a href="SwaggerPetstore-Logging.html#t:LogContext">LogContext</a></li></ul>}</li><li class="src short"><a href="#v:newConfig">newConfig</a> :: <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></li><li class="src short"><a href="#v:withStdoutLogging">withStdoutLogging</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></li><li class="src short"><a href="#v:withStderrLogging">withStderrLogging</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></li><li class="src short"><a href="#v:withNoLogging">withNoLogging</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></li><li class="src short"><a href="#v:dispatchLbs">dispatchLbs</a> :: (<a href="SwaggerPetstore-MimeTypes.html#t:Produces">Produces</a> req accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType) => <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res -> accept -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:MimeResult">MimeResult</a> res = <a href="#v:MimeResult">MimeResult</a> {<ul class="subs"><li><a href="#v:mimeResult">mimeResult</a> :: <a href="../base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> res</li><li><a href="#v:mimeResultResponse">mimeResultResponse</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:MimeError">MimeError</a> = <a href="#v:MimeError">MimeError</a> {<ul class="subs"><li><a href="#v:mimeError">mimeError</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:mimeErrorResponse">mimeErrorResponse</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li></ul>}</li><li class="src short"><a href="#v:dispatchMime">dispatchMime</a> :: (<a href="SwaggerPetstore-MimeTypes.html#t:Produces">Produces</a> req accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeUnrender">MimeUnrender</a> accept res, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType) => <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res -> accept -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> res)</li><li class="src short"><a href="#v:dispatchMime-39-">dispatchMime'</a> :: (<a href="SwaggerPetstore-MimeTypes.html#t:Produces">Produces</a> req accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeUnrender">MimeUnrender</a> accept res, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType) => <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res -> accept -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> res)</li><li class="src short"><a href="#v:dispatchLbsUnsafe">dispatchLbsUnsafe</a> :: (<a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType) => <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res -> accept -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:dispatchInitUnsafe">dispatchInitUnsafe</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:InitRequest">InitRequest</a> req contentType res accept = <a href="#v:InitRequest">InitRequest</a> {<ul class="subs"><li><a href="#v:unInitRequest">unInitRequest</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a></li></ul>}</li><li class="src short"><a href="#v:_toInitRequest">_toInitRequest</a> :: (<a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType) => <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res -> accept -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept)</li><li class="src short"><a href="#v:modifyInitRequest">modifyInitRequest</a> :: <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a> -> <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a>) -> <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept</li><li class="src short"><a href="#v:modifyInitRequestM">modifyInitRequestM</a> :: <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a> -> m <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a>) -> m (<a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept)</li><li class="src short"><a href="#v:runConfigLog">runConfigLog</a> :: <a href="../base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m => <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Logging.html#t:LogExec">LogExec</a> m</li><li class="src short"><a href="#v:runConfigLogWithExceptions">runConfigLogWithExceptions</a> :: (<a href="../exceptions-0.8.3/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> m, <a href="../base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Logging.html#t:LogExec">LogExec</a> m</li></ul></div><div id="interface"><h1 id="g:1">Config</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SwaggerPetstoreConfig" class="def">SwaggerPetstoreConfig</a> <a href="src/SwaggerPetstore.Client.html#SwaggerPetstoreConfig" class="link">Source</a> <a href="#t:SwaggerPetstoreConfig" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:SwaggerPetstoreConfig" class="def">SwaggerPetstoreConfig</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:configHost" class="def">configHost</a> :: <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></dfn><div class="doc"><p>host supplied in the Request</p></div></li><li><dfn class="src"><a id="v:configUserAgent" class="def">configUserAgent</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a></dfn><div class="doc"><p>user-agent supplied in the Request</p></div></li><li><dfn class="src"><a id="v:configLogExecWithContext" class="def">configLogExecWithContext</a> :: <a href="SwaggerPetstore-Logging.html#t:LogExecWithContext">LogExecWithContext</a></dfn><div class="doc"><p>Run a block using a Logger instance</p></div></li><li><dfn class="src"><a id="v:configLogContext" class="def">configLogContext</a> :: <a href="SwaggerPetstore-Logging.html#t:LogContext">LogContext</a></dfn><div class="doc"><p>Configures the logger</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:SwaggerPetstoreConfig" class="caption collapser" onclick="toggleSection('i:SwaggerPetstoreConfig')">Instances</p><div id="section.i:SwaggerPetstoreConfig" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SwaggerPetstoreConfig:Show:1" class="instance expander" onclick="toggleSection('i:id:SwaggerPetstoreConfig:Show:1')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></span> <a href="src/SwaggerPetstore.Client.html#line-64" class="link">Source</a> <a href="#t:SwaggerPetstoreConfig" class="selflink">#</a></td><td class="doc"><p>display the config</p></td></tr><tr><td colspan="2"><div id="section.i:id:SwaggerPetstoreConfig:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a>] -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:newConfig" class="def">newConfig</a> :: <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> <a href="src/SwaggerPetstore.Client.html#newConfig" class="link">Source</a> <a href="#v:newConfig" class="selflink">#</a></p><div class="doc"><p>constructs a default SwaggerPetstoreConfig</p><p>configHost:</p><pre><a href="http://petstore.swagger.io/v2">http://petstore.swagger.io/v2</a></pre><p>configUserAgent:</p><pre>"swagger-haskell-http-client/1.0.0"</pre></div></div><div class="top"><p class="src"><a id="v:withStdoutLogging" class="def">withStdoutLogging</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> <a href="src/SwaggerPetstore.Client.html#withStdoutLogging" class="link">Source</a> <a href="#v:withStdoutLogging" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withStderrLogging" class="def">withStderrLogging</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> <a href="src/SwaggerPetstore.Client.html#withStderrLogging" class="link">Source</a> <a href="#v:withStderrLogging" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withNoLogging" class="def">withNoLogging</a> :: <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> <a href="src/SwaggerPetstore.Client.html#withNoLogging" class="link">Source</a> <a href="#v:withNoLogging" class="selflink">#</a></p><div class="doc"><p>updates the config to disable logging</p></div></div><h1 id="g:2">Dispatch</h1><h2 id="g:3">Lbs</h2><div class="top"><p class="src"><a id="v:dispatchLbs" class="def">dispatchLbs</a> <a href="src/SwaggerPetstore.Client.html#dispatchLbs" class="link">Source</a> <a href="#v:dispatchLbs" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="SwaggerPetstore-MimeTypes.html#t:Produces">Produces</a> req accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a></td><td class="doc"><p>http-client Connection manager</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></td><td class="doc"><p>config</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res</td><td class="doc"><p>request</p></td></tr><tr><td class="src">-> accept</td><td class="doc"><p>"accept" <code><a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a></code></p></td></tr><tr><td class="src">-> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</td><td class="doc"><p>response</p></td></tr></table></div><div class="doc"><p>send a request returning the raw http response</p></div></div><h2 id="g:4">Mime</h2><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:MimeResult" class="def">MimeResult</a> res <a href="src/SwaggerPetstore.Client.html#MimeResult" class="link">Source</a> <a href="#t:MimeResult" class="selflink">#</a></p><div class="doc"><p>pair of decoded http body and http response</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:MimeResult" class="def">MimeResult</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:mimeResult" class="def">mimeResult</a> :: <a href="../base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> res</dfn><div class="doc"><p>decoded http body</p></div></li><li><dfn class="src"><a id="v:mimeResultResponse" class="def">mimeResultResponse</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></dfn><div class="doc"><p>http response </p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:MimeResult" class="caption collapser" onclick="toggleSection('i:MimeResult')">Instances</p><div id="section.i:MimeResult" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:MimeResult:Functor:1" class="instance expander" onclick="toggleSection('i:id:MimeResult:Functor:1')"></span> <a href="../base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a></span> <a href="src/SwaggerPetstore.Client.html#line-128" class="link">Source</a> <a href="#t:MimeResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:MimeResult:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> b -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:MimeResult:Foldable:2" class="instance expander" onclick="toggleSection('i:id:MimeResult:Foldable:2')"></span> <a href="../base-4.9.1.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a></span> <a href="src/SwaggerPetstore.Client.html#line-128" class="link">Source</a> <a href="#t:MimeResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:MimeResult:Foldable:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fold">fold</a> :: <a href="../base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> m => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> m -> m <a href="#v:fold" class="selflink">#</a></p><p class="src"><a href="#v:foldMap">foldMap</a> :: <a href="../base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> m => (a -> m) -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> m <a href="#v:foldMap" class="selflink">#</a></p><p class="src"><a href="#v:foldr">foldr</a> :: (a -> b -> b) -> b -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> b <a href="#v:foldr" class="selflink">#</a></p><p class="src"><a href="#v:foldr-39-">foldr'</a> :: (a -> b -> b) -> b -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> b <a href="#v:foldr-39-" class="selflink">#</a></p><p class="src"><a href="#v:foldl">foldl</a> :: (b -> a -> b) -> b -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> b <a href="#v:foldl" class="selflink">#</a></p><p class="src"><a href="#v:foldl-39-">foldl'</a> :: (b -> a -> b) -> b -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> b <a href="#v:foldl-39-" class="selflink">#</a></p><p class="src"><a href="#v:foldr1">foldr1</a> :: (a -> a -> a) -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> a <a href="#v:foldr1" class="selflink">#</a></p><p class="src"><a href="#v:foldl1">foldl1</a> :: (a -> a -> a) -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> a <a href="#v:foldl1" class="selflink">#</a></p><p class="src"><a href="#v:toList">toList</a> :: <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> [a] <a href="#v:toList" class="selflink">#</a></p><p class="src"><a href="#v:null">null</a> :: <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:null" class="selflink">#</a></p><p class="src"><a href="#v:length">length</a> :: <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:length" class="selflink">#</a></p><p class="src"><a href="#v:elem">elem</a> :: <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a => a -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:elem" class="selflink">#</a></p><p class="src"><a href="#v:maximum">maximum</a> :: <a href="../base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> a <a href="#v:maximum" class="selflink">#</a></p><p class="src"><a href="#v:minimum">minimum</a> :: <a href="../base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> a <a href="#v:minimum" class="selflink">#</a></p><p class="src"><a href="#v:sum">sum</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> a <a href="#v:sum" class="selflink">#</a></p><p class="src"><a href="#v:product">product</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> a <a href="#v:product" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:MimeResult:Traversable:3" class="instance expander" onclick="toggleSection('i:id:MimeResult:Traversable:3')"></span> <a href="../base-4.9.1.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a></span> <a href="src/SwaggerPetstore.Client.html#line-128" class="link">Source</a> <a href="#t:MimeResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:MimeResult:Traversable:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:traverse">traverse</a> :: <a href="../base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> f => (a -> f b) -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> f (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> b) <a href="#v:traverse" class="selflink">#</a></p><p class="src"><a href="#v:sequenceA">sequenceA</a> :: <a href="../base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> f => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> (f a) -> f (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a) <a href="#v:sequenceA" class="selflink">#</a></p><p class="src"><a href="#v:mapM">mapM</a> :: <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => (a -> m b) -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a -> m (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> b) <a href="#v:mapM" class="selflink">#</a></p><p class="src"><a href="#v:sequence">sequence</a> :: <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> (m a) -> m (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> a) <a href="#v:sequence" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:MimeResult:Show:4" class="instance expander" onclick="toggleSection('i:id:MimeResult:Show:4')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> res => <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> res)</span> <a href="src/SwaggerPetstore.Client.html#line-128" class="link">Source</a> <a href="#t:MimeResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:MimeResult:Show:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> res -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> res -> <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> res] -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:MimeError" class="def">MimeError</a> <a href="src/SwaggerPetstore.Client.html#MimeError" class="link">Source</a> <a href="#t:MimeError" class="selflink">#</a></p><div class="doc"><p>pair of unrender/parser error and http response</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:MimeError" class="def">MimeError</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:mimeError" class="def">mimeError</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc"><p>unrender/parser error</p></div></li><li><dfn class="src"><a id="v:mimeErrorResponse" class="def">mimeErrorResponse</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></dfn><div class="doc"><p>http response </p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:MimeError" class="caption collapser" onclick="toggleSection('i:MimeError')">Instances</p><div id="section.i:MimeError" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:MimeError:Eq:1" class="instance expander" onclick="toggleSection('i:id:MimeError:Eq:1')"></span> <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a></span> <a href="src/SwaggerPetstore.Client.html#line-135" class="link">Source</a> <a href="#t:MimeError" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:MimeError:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> -> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> -> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:MimeError:Show:2" class="instance expander" onclick="toggleSection('i:id:MimeError:Show:2')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a></span> <a href="src/SwaggerPetstore.Client.html#line-135" class="link">Source</a> <a href="#t:MimeError" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:MimeError:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> -> <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a>] -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:dispatchMime" class="def">dispatchMime</a> <a href="src/SwaggerPetstore.Client.html#dispatchMime" class="link">Source</a> <a href="#v:dispatchMime" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="SwaggerPetstore-MimeTypes.html#t:Produces">Produces</a> req accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeUnrender">MimeUnrender</a> accept res, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a></td><td class="doc"><p>http-client Connection manager</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></td><td class="doc"><p>config</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res</td><td class="doc"><p>request</p></td></tr><tr><td class="src">-> accept</td><td class="doc"><p>"accept" <code><a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a></code></p></td></tr><tr><td class="src">-> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a> res)</td><td class="doc"><p>response</p></td></tr></table></div><div class="doc"><p>send a request returning the <code><a href="SwaggerPetstore-Client.html#t:MimeResult">MimeResult</a></code></p></div></div><div class="top"><p class="src"><a id="v:dispatchMime-39-" class="def">dispatchMime'</a> <a href="src/SwaggerPetstore.Client.html#dispatchMime%27" class="link">Source</a> <a href="#v:dispatchMime-39-" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="SwaggerPetstore-MimeTypes.html#t:Produces">Produces</a> req accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeUnrender">MimeUnrender</a> accept res, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a></td><td class="doc"><p>http-client Connection manager</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></td><td class="doc"><p>config</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res</td><td class="doc"><p>request</p></td></tr><tr><td class="src">-> accept</td><td class="doc"><p>"accept" <code><a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a></code></p></td></tr><tr><td class="src">-> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="SwaggerPetstore-Client.html#t:MimeError">MimeError</a> res)</td><td class="doc"><p>response</p></td></tr></table></div><div class="doc"><p>like <code><a href="SwaggerPetstore-Client.html#v:dispatchMime">dispatchMime</a></code>, but only returns the decoded http body</p></div></div><h2 id="g:5">Unsafe</h2><div class="top"><p class="src"><a id="v:dispatchLbsUnsafe" class="def">dispatchLbsUnsafe</a> <a href="src/SwaggerPetstore.Client.html#dispatchLbsUnsafe" class="link">Source</a> <a href="#v:dispatchLbsUnsafe" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a></td><td class="doc"><p>http-client Connection manager</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></td><td class="doc"><p>config</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res</td><td class="doc"><p>request</p></td></tr><tr><td class="src">-> accept</td><td class="doc"><p>"accept" <code><a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a></code></p></td></tr><tr><td class="src">-> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</td><td class="doc"><p>response</p></td></tr></table></div><div class="doc"><p>like <code>dispatchReqLbs</code>, but does not validate the operation is a <code>Producer</code> of the "accept" <code><a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a></code>. (Useful if the server's response is undocumented)</p></div></div><div class="top"><p class="src"><a id="v:dispatchInitUnsafe" class="def">dispatchInitUnsafe</a> <a href="src/SwaggerPetstore.Client.html#dispatchInitUnsafe" class="link">Source</a> <a href="#v:dispatchInitUnsafe" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Manager">Manager</a></td><td class="doc"><p>http-client Connection manager</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></td><td class="doc"><p>config</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept</td><td class="doc"><p>init request</p></td></tr><tr><td class="src">-> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Response">Response</a> <a href="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</td><td class="doc"><p>response</p></td></tr></table></div><div class="doc"><p>dispatch an InitRequest</p></div></div><h1 id="g:6">InitRequest</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:InitRequest" class="def">InitRequest</a> req contentType res accept <a href="src/SwaggerPetstore.Client.html#InitRequest" class="link">Source</a> <a href="#t:InitRequest" class="selflink">#</a></p><div class="doc"><p>wraps an http-client <code>Request</code> with request/response type parameters</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:InitRequest" class="def">InitRequest</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unInitRequest" class="def">unInitRequest</a> :: <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a></dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:InitRequest" class="caption collapser" onclick="toggleSection('i:InitRequest')">Instances</p><div id="section.i:InitRequest" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:InitRequest:Show:1" class="instance expander" onclick="toggleSection('i:id:InitRequest:Show:1')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept)</span> <a href="src/SwaggerPetstore.Client.html#line-217" class="link">Source</a> <a href="#t:InitRequest" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:InitRequest:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept] -> <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:_toInitRequest" class="def">_toInitRequest</a> <a href="src/SwaggerPetstore.Client.html#_toInitRequest" class="link">Source</a> <a href="#v:_toInitRequest" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> accept, <a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a> contentType)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a></td><td class="doc"><p>config</p></td></tr><tr><td class="src">-> <a href="SwaggerPetstore-API.html#t:SwaggerPetstoreRequest">SwaggerPetstoreRequest</a> req contentType res</td><td class="doc"><p>request</p></td></tr><tr><td class="src">-> accept</td><td class="doc"><p>"accept" <code><a href="SwaggerPetstore-MimeTypes.html#t:MimeType">MimeType</a></code></p></td></tr><tr><td class="src">-> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept)</td><td class="doc"><p>initialized request</p></td></tr></table></div><div class="doc"><p>Build an http-client <code>Request</code> record from the supplied config and request</p></div></div><div class="top"><p class="src"><a id="v:modifyInitRequest" class="def">modifyInitRequest</a> :: <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a> -> <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a>) -> <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept <a href="src/SwaggerPetstore.Client.html#modifyInitRequest" class="link">Source</a> <a href="#v:modifyInitRequest" class="selflink">#</a></p><div class="doc"><p>modify the underlying Request</p></div></div><div class="top"><p class="src"><a id="v:modifyInitRequestM" class="def">modifyInitRequestM</a> :: <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept -> (<a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a> -> m <a href="../http-client-0.5.7.0/Network-HTTP-Client.html#t:Request">Request</a>) -> m (<a href="SwaggerPetstore-Client.html#t:InitRequest">InitRequest</a> req contentType res accept) <a href="src/SwaggerPetstore.Client.html#modifyInitRequestM" class="link">Source</a> <a href="#v:modifyInitRequestM" class="selflink">#</a></p><div class="doc"><p>modify the underlying Request (monadic)</p></div></div><h2 id="g:7">Logging </h2><div class="top"><p class="src"><a id="v:runConfigLog" class="def">runConfigLog</a> :: <a href="../base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m => <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Logging.html#t:LogExec">LogExec</a> m <a href="src/SwaggerPetstore.Client.html#runConfigLog" class="link">Source</a> <a href="#v:runConfigLog" class="selflink">#</a></p><div class="doc"><p>Run a block using the configured logger instance</p></div></div><div class="top"><p class="src"><a id="v:runConfigLogWithExceptions" class="def">runConfigLogWithExceptions</a> :: (<a href="../exceptions-0.8.3/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> m, <a href="../base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="SwaggerPetstore-Client.html#t:SwaggerPetstoreConfig">SwaggerPetstoreConfig</a> -> <a href="SwaggerPetstore-Logging.html#t:LogExec">LogExec</a> m <a href="src/SwaggerPetstore.Client.html#runConfigLogWithExceptions" class="link">Source</a> <a href="#v:runConfigLogWithExceptions" class="selflink">#</a></p><div class="doc"><p>Run a block using the configured logger instance (logs exceptions)</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html> |