@@ -64,8 +64,32 @@ data RequestF body path = Request
64 , requestHeaders :: Seq.Seq Header
64 , requestHeaders :: Seq.Seq Header
65 , requestHttpVersion :: HttpVersion
65 , requestHttpVersion :: HttpVersion
66 , requestMethod :: Method
66 , requestMethod :: Method
67− } deriving (Generic, Typeable, Eq, Show, Functor, Foldable, Traversable)
67+ } deriving (Generic, Typeable, Eq, Functor, Foldable, Traversable)
69+instance (Show a, Show b) =>
70+ Show (Servant.Client.Core.Request.RequestF a b) where
74+ ( showString "Request {requestPath = "
75+ . showsPrec 0 (requestPath req)
76+ . showString ", requestQueryString = "
77+ . showsPrec 0 (requestQueryString req)
78+ . showString ", requestBody = "
79+ . showsPrec 0 (requestBody req)
80+ . showString ", requestAccept = "
81+ . showsPrec 0 (requestAccept req)
82+ . showString ", requestHeaders = "
83+ . showsPrec 0 (redactSensitiveHeader <$> requestHeaders req))
84+ . showString ", requestHttpVersion = "
85+ . showsPrec 0 (requestHttpVersion req)
86+ . showString ", requestMethod = "
87+ . showsPrec 0 (requestMethod req)
90+ redactSensitiveHeader :: Header -> Header
91+ redactSensitiveHeader ("Authorization", _) = ("Authorization", "<REDACTED>")
92+ redactSensitiveHeader h = h
69instance Bifunctor RequestF where bimap = bimapDefault
93instance Bifunctor RequestF where bimap = bimapDefault
70instance Bifoldable RequestF where bifoldMap = bifoldMapDefault
94instance Bifoldable RequestF where bifoldMap = bifoldMapDefault
71instance Bitraversable RequestF where
95instance Bitraversable RequestF where