ú΃é}ğe      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdSafe$05kSimple data type to represent the target of HTTP requests for servant's automatically-generated clients.URI scheme to usehost (eg "haskell.org") port (eg 80) path (eg "ab/c")URI scheme to usehttp:// https://e   e None05ITClientM; is the monad in which client functions run. Contains the f and - used for requests in the reader environment.( !"#$%&'()*+,-./012 param name param value3456789:;<=& !"#$%&'()*,-+./0123456789:;-$%&'()*+,-+,+,.,/=< !"#0123456789:; !"#$%&'()*+,-+,+,.,/0123456789:;<=None9DRF1Authenticate a request using Basic AuthenticationFFFFNone9DRGhFor better type inference and to avoid usage of a data family, we newtype wrap the combination of some J8 and a function to add authentication data to a request4NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGEJšFor a resource protected by authentication (e.g. AuthProtect), we need to provide the client with some data used to add authentication data to a request4NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGEK>Handy helper to avoid wrapping datatypes in tuples everywhere.4NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGEGHIJKGHIJKGHIJKGHIJKNone+,-9:;DQRT LThis class lets us define how each API combinator influences the creation of an HTTP request. It's mostly an internal class, you can just use O.OO@ allows you to produce operations to query an API from a client. ÿtype MyApi = "books" :> Get '[JSON] [Book] -- GET /books :<|> "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book -- POST /books myApi :: Proxy MyApi myApi = Proxy getAllBooks :: ClientM [Book] postNewBook :: Book -> ClientM Book (getAllBooks :<|> postNewBook) = client myApiV"Make the querying function append path to the request path.W If you use a gš in one of your endpoints in your API, the corresponding querying function will automatically take an additional argument of the type specified by your gg. That function will take care of encoding this argument as JSON and of using it as the request body.(All you need is for your type to have a ToJSON instance.Example: ×type MyApi = "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book myApi :: Proxy MyApi myApi = Proxy addBook :: Book -> ClientM Book addBook = client myApi -- then you can just use "addBook" to query that endpointXPick a MethodK and specify where the server you want to query is. You get back the full h.Y If you use a is in one of your endpoints in your API, the corresponding querying function will automatically take an additional j argument. If you give k,, nothing will be added to the query string.lOtherwise, this function will insert a value-less query string parameter under the name associated to your i.Example: ÿ>type MyApi = "books" :> QueryFlag "published" :> Get '[JSON] [Book] myApi :: Proxy MyApi myApi = Proxy getBooks :: Bool -> ClientM [Book] getBooks = client myApi -- then you can just use "getBooks" to query that endpoint. -- 'getBooksBy False' for all books -- 'getBooksBy True' to only get _already published_ booksZ If you use a l­ in one of your endpoints in your API, the corresponding querying function will automatically take an additional argument, a list of values of the type specified by your l.EIf you give an empty list, nothing will be added to the query string.ŸOtherwise, this function will take care of inserting a textual representation of your values in the query string, under the same query string parameter name.OYou can control how values for your type are turned into text by specifying a m instance for your type.Example: ÿqtype MyApi = "books" :> QueryParams "authors" Text :> Get '[JSON] [Book] myApi :: Proxy MyApi myApi = Proxy getBooksBy :: [Text] -> ClientM [Book] getBooksBy = client myApi -- then you can just use "getBooksBy" to query that endpoint. -- 'getBooksBy []' for all books -- 'getBooksBy ["Isaac Asimov", "Robert A. Heinlein"]' -- to get all books by Asimov and Heinlein[ If you use a nš in one of your endpoints in your API, the corresponding querying function will automatically take an additional argument of the type specified by your n, enclosed in Maybe.?If you give Nothing, nothing will be added to the query string.If you give a non-on value, this function will take care of inserting a textual representation of this value in the query string.OYou can control how values for your type are turned into text by specifying a m instance for your type.Example: ÿ[type MyApi = "books" :> QueryParam "author" Text :> Get '[JSON] [Book] myApi :: Proxy MyApi myApi = Proxy getBooksBy :: Maybe Text -> ClientM [Book] getBooksBy = client myApi -- then you can just use "getBooksBy" to query that endpoint. -- 'getBooksBy Nothing' for all books -- 'getBooksBy (Just "Isaac Asimov")' to get all books by Isaac Asimov\Using a p= combinator in your API doesn't affect the client functions.] If you use a qš in one of your endpoints in your API, the corresponding querying function will automatically take an additional argument of the type specified by your q, wrapped in Maybe.WThat function will take care of encoding this argument as Text in the request headers.(All you need is for your type to have a m instance.Example: ÿÀnewtype Referer = Referer { referrer :: Text } deriving (Eq, Show, Generic, ToHttpApiData) -- GET /view-my-referer type MyApi = "view-my-referer" :> Header "Referer" Referer :> Get '[JSON] Referer myApi :: Proxy MyApi myApi = Proxy viewReferer :: Maybe Referer -> ClientM Book viewReferer = client myApi -- then you can just use "viewRefer" to query that endpoint -- specifying Nothing or e.g Just "http://haskell.org/" as argumentsb If you use a r¥ in one of your endpoints in your API, the corresponding querying function will automatically take an additional argument of a list of the type specified by your r|. That function will take care of inserting a textual representation of this value at the right place in the request path.GYou can control how these values are turned into text by specifying a m instance of your type.Example: ]type MyAPI = "src" :> CaptureAll Text -> Get '[JSON] SourceFile myApi :: Proxy myApi = Proxy …getSourceFile :: [Text] -> ClientM SourceFile getSourceFile = client myApi -- then you can use "getSourceFile" to query that endpointc If you use a sš in one of your endpoints in your API, the corresponding querying function will automatically take an additional argument of the type specified by your s|. That function will take care of inserting a textual representation of this value at the right place in the request path.OYou can control how values for this type are turned into text by specifying a m instance for your type.Example: Õtype MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book myApi :: Proxy MyApi myApi = Proxy getBook :: Text -> ClientM Book getBook = client myApi -- then you can just use "getBook" to query that endpointdA client querying function for a t b5 will actually hand you one function for querying a and another one for querying b", stitching them together with t#, which really is just like a pair. ÿtype MyApi = "books" :> Get '[JSON] [Book] -- GET /books :<|> "books" :> ReqBody '[JSON] Book :> Post Book -- POST /books myApi :: Proxy MyApi myApi = Proxy getAllBooks :: ClientM [Book] postNewBook :: Book -> ClientM Book (getAllBooks :<|> postNewBook) = client myApiLMNOPQRSTUVWXYZ[\]^_`abcd% $%&'()*,-+./7GHIJKLMNOJGHIOLMN7K$%&'()*+,-+,+,.,/LMNOPQRSTUVWXYZ[\]^_`abcdu       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkfglimnopqoprimstuvimwxyz{|}i~i€i€‚iƒ„…+servant-client-0.9.1-C2pyulhDtEe8eyhFWxtX5SServant.Common.BaseUrlServant.Common.ReqServant.Common.BasicAuth Servant.Client.Experimental.AuthServant.ClientInvalidBaseUrlExceptionBaseUrl baseUrlScheme baseUrlHost baseUrlPort baseUrlPathSchemeHttpHttps showBaseUrl parseBaseUrl"$fExceptionInvalidBaseUrlException $fEqBaseUrl $fShowScheme $fEqScheme $fOrdScheme$fGenericScheme $fShowBaseUrl $fOrdBaseUrl$fGenericBaseUrl$fShowInvalidBaseUrlExceptionClientM runClientM' ClientEnvmanagerbaseUrlReqreqPathqsreqBody reqAcceptheaders ServantErrorFailureResponse DecodeFailureUnsupportedContentTypeInvalidContentTypeHeaderConnectionErrorresponseStatusresponseContentType responseBody decodeErrorresponseContentTypeHeaderconnectionErrordefReq appendToPathappendToQueryString addHeader setRQBody reqToRequestdisplayHttpRequest runClientMperformRequestperformRequestCTperformRequestNoBodycatchConnectionError$fExceptionServantError$fEqServantError$fShowServantError$fFunctorClientM$fApplicativeClientM$fMonadClientM$fMonadIOClientM$fGenericClientM$fMonadReaderClientM$fMonadErrorClientM basicAuthReqAuthenticateReq unAuthReqAuthClientDatamkAuthenticateReq HasClientClientclientWithRouteclient$fHasClientTYPE:>$fHasClientTYPE:>0$fHasClientTYPEWithNamedContext$fHasClientTYPE:>1$fHasClientTYPE:>2$fHasClientTYPE:>3$fHasClientTYPE:>4$fHasClientTYPE:>5$fHasClientTYPERaw$fHasClientTYPE:>6$fHasClientTYPE:>7$fHasClientTYPE:>8$fHasClientTYPE:>9$fHasClientTYPE:>10$fHasClientTYPEVerb$fHasClientTYPEVerb0$fHasClientTYPEVerb1$fHasClientTYPEVerb2$fHasClientTYPE:>11$fHasClientTYPE:>12$fHasClientTYPE:<|>(http-client-0.5.4-LsesjLICC95KR6n1mhJm04Network.HTTP.Client.TypesManager&servant-0.9.1.1-8DAwJ5DcbJ21jJjIA0wMo3Servant.API.ReqBodyReqBodyResponseServant.API.QueryParam QueryFlagghc-prim GHC.TypesBoolFalse QueryParams)http-api-data-0.3.3-EoolhIZeBphN54OqNLvbTWeb.Internal.HttpApiData ToHttpApiData QueryParambaseGHC.BaseNothing'http-types-0.9.1-BTSIP6lzG5DE6u136PaywsNetwork.HTTP.Types.Version HttpVersionServant.API.HeaderHeaderServant.API.Capture CaptureAllCaptureServant.API.Alternative:<|>