Skip to content

Commit

Permalink
Show for CertSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jan 22, 2024
1 parent b8b0c09 commit 1a8b876
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion warp-tls/Network/Wai/Handler/WarpTLS/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ data CertSettings
![I.IORef S.ByteString]
!(I.IORef S.ByteString)

instance Show CertSettings where
show (CertFromFile a b c) = "CertFromFile " ++ show a ++ " " ++ show b ++ " " ++ show c
show (CertFromMemory a b c) = "CertFromMemory " ++ show a ++ " " ++ show b ++ " " ++ show c
show (CertFromRef _ _ _) = "CertFromRef"

----------------------------------------------------------------

-- | An action when a plain HTTP comes to HTTP over TLS/SSL port.
Expand All @@ -47,7 +52,7 @@ data TLSSettings = TLSSettings
-- loaded from?
--
-- >>> certSettings defaultTlsSettings
-- tlsSettings "certificate.pem" "key.pem"
-- CertFromFile "certificate.pem" [] "key.pem"
--
-- @since 3.3.0
, onInsecure :: OnInsecure
Expand Down

0 comments on commit 1a8b876

Please sign in to comment.