smtpbz-1.2.0: Unofficial API client for smtp.bz
Safe HaskellNone
LanguageHaskell2010

Smtpbz.Internal.Has

Synopsis

Documentation

class Has t where Source #

smtp.bz configuration that is used by the library and the user may want to override.

Methods

apiKey :: t -> ByteString Source #

API key; get one at https://smtp.bz/panel/user

baseUrl :: t -> Text Source #

API base URL; Most likely, https://api.smtp.bz/v1

httpMan :: t -> Manager Source #

The Manager under which all requests will be made.

The default Manager is incompatible with outdated smtpbz servers because it requires the Extended Main Secret extension, which those servers do not support. Therefore, we define a newtype to prevent unintentional passing of an incompatible Manager to API methods, which would result in a runtime error.