Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
The DoH api, defined in the Servant.API.Generic style.
Instances
Generic (DoHApi route) Source # | |||||
Defined in OM.DoH.Api
| |||||
type Rep (DoHApi route) Source # | |||||
Defined in OM.DoH.Api type Rep (DoHApi route) = D1 ('MetaData "DoHApi" "OM.DoH.Api" "om-doh-0.1.0.3-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)))))) |
A raw DNS query message. The Network.DNS module contains tools for encoding and decoding these messages.
Instances
FromHttpApiData Query Source # | |
Defined in OM.DoH.Api parseUrlPiece :: Text -> Either Text Query # parseHeader :: ByteString -> Either Text Query # | |
MimeUnrender DnsMsgCT Query Source # | |
Defined in OM.DoH.Api mimeUnrender :: Proxy DnsMsgCT -> ByteString -> Either String Query # mimeUnrenderWithType :: Proxy DnsMsgCT -> MediaType -> ByteString -> Either String Query # |
A raw DNS response message. The Network.DNS module contains tools for encoding and decoding these messages.
Instances
MimeRender DnsMsgCT Response Source # | |
Defined in OM.DoH.Api mimeRender :: Proxy DnsMsgCT -> Response -> ByteString # |
The application/dns-message
content type.
Instances
Accept DnsMsgCT Source # | |
Defined in OM.DoH.Api | |
MimeRender DnsMsgCT ByteString Source # | |
Defined in OM.DoH.Api mimeRender :: Proxy DnsMsgCT -> ByteString -> ByteString # | |
MimeRender DnsMsgCT Response Source # | |
Defined in OM.DoH.Api mimeRender :: Proxy DnsMsgCT -> Response -> ByteString # | |
MimeUnrender DnsMsgCT ByteString Source # | |
Defined in OM.DoH.Api mimeUnrender :: Proxy DnsMsgCT -> ByteString -> Either String ByteString # mimeUnrenderWithType :: Proxy DnsMsgCT -> MediaType -> ByteString -> Either String ByteString # | |
MimeUnrender DnsMsgCT Query Source # | |
Defined in OM.DoH.Api mimeUnrender :: Proxy DnsMsgCT -> ByteString -> Either String Query # mimeUnrenderWithType :: Proxy DnsMsgCT -> MediaType -> ByteString -> Either String Query # |