@@ -203,6 +203,17 @@ instance (KnownSymbol sym, ToHttpApiData a, HasClient sublayout)
203203
204204 where hname = symbolVal (Proxy :: Proxy sym)
205205
206+-- | Using a 'HttpVersion' combinator in your API doesn't affect the client
207+-- functions.
208+instance HasClient sublayout
209+ => HasClient (HttpVersion :> sublayout) where
210+
211+ type Client (HttpVersion :> sublayout) =
212+ Client sublayout
213+
214+ clientWithRoute Proxy =
215+ clientWithRoute (Proxy :: Proxy sublayout)
216+
206217-- | If you use a 'QueryParam' in one of your endpoints in your API,
207218-- the corresponding querying function will automatically take
208219-- an additional argument of the type specified by your 'QueryParam',