hreq-core-0.1.0.0: Core functionality for Hreq Http client library

Safe HaskellNone
LanguageHaskell2010

Hreq.Core.Client.BaseUrl

Description

This module provides a safe way to construct API endpoint base URLs

Synopsis

Documentation

data Scheme Source #

Constructors

Http 
Https 
Instances
Eq Scheme Source # 
Instance details

Defined in Hreq.Core.Client.BaseUrl

Methods

(==) :: Scheme -> Scheme -> Bool #

(/=) :: Scheme -> Scheme -> Bool #

Ord Scheme Source # 
Instance details

Defined in Hreq.Core.Client.BaseUrl

Show Scheme Source # 
Instance details

Defined in Hreq.Core.Client.BaseUrl

data BaseUrl Source #

Simple data type to represent the target of HTTP requests

Constructors

BaseUrl 

Fields

Instances
Eq BaseUrl Source # 
Instance details

Defined in Hreq.Core.Client.BaseUrl

Methods

(==) :: BaseUrl -> BaseUrl -> Bool #

(/=) :: BaseUrl -> BaseUrl -> Bool #

Ord BaseUrl Source # 
Instance details

Defined in Hreq.Core.Client.BaseUrl

Show BaseUrl Source # 
Instance details

Defined in Hreq.Core.Client.BaseUrl

pattern HttpUrl :: Text -> Text -> BaseUrl Source #

pattern HttpsUrl :: Text -> Text -> BaseUrl Source #