om-doh-0.1.0.2: om-doh
Safe HaskellNone
LanguageHaskell2010

OM.DoH.Api

Description

 
Synopsis

Documentation

data DoHApi route Source #

The DoH api, defined in the Servant.API.Generic style.

Constructors

DoHApi 

Fields

Instances

Instances details
Generic (DoHApi route) Source # 
Instance details

Defined in OM.DoH.Api

Associated Types

type Rep (DoHApi route) 
Instance details

Defined in OM.DoH.Api

type Rep (DoHApi route) = D1 ('MetaData "DoHApi" "OM.DoH.Api" "om-doh-0.1.0.2-inplace" 'False) (C1 ('MetaCons "DoHApi" 'PrefixI 'True) (S1 ('MetaSel ('Just "getQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (Summary "Submit a raw DNS query on the query string." :> (QueryParam' '[Required, Strict] "dns" Query :> Get '[DnsMsgCT] Response)))) :*: S1 ('MetaSel ('Just "postQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (Summary "Submit a raw DNS query in the POST body." :> (ReqBody '[DnsMsgCT] Query :> Post '[DnsMsgCT] Response))))))

Methods

from :: DoHApi route -> Rep (DoHApi route) x #

to :: Rep (DoHApi route) x -> DoHApi route #

type Rep (DoHApi route) Source # 
Instance details

Defined in OM.DoH.Api

type Rep (DoHApi route) = D1 ('MetaData "DoHApi" "OM.DoH.Api" "om-doh-0.1.0.2-inplace" 'False) (C1 ('MetaCons "DoHApi" 'PrefixI 'True) (S1 ('MetaSel ('Just "getQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (Summary "Submit a raw DNS query on the query string." :> (QueryParam' '[Required, Strict] "dns" Query :> Get '[DnsMsgCT] Response)))) :*: S1 ('MetaSel ('Just "postQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (Summary "Submit a raw DNS query in the POST body." :> (ReqBody '[DnsMsgCT] Query :> Post '[DnsMsgCT] Response))))))

newtype Query Source #

A raw DNS query message. The Network.DNS module contains tools for encoding and decoding these messages.

Constructors

Query 

Fields

newtype Response Source #

A raw DNS response message. The Network.DNS module contains tools for encoding and decoding these messages.

Constructors

Response 

Instances

Instances details
MimeRender DnsMsgCT Response Source # 
Instance details

Defined in OM.DoH.Api