@@ -283,19 +283,52 @@ enqueueControl ctlQ ctl = atomically $ writeTQueue ctlQ ctl
283283
284284----------------------------------------------------------------
285285
286+-- | HTTP/2 specific data.
287+--
288+-- Since: 3.2.7
286289newtype HTTP2Data = HTTP2Data {
290+ -- | Accessor for 'PushPromise' in 'HTTP2Data'.
291+ --
292+ -- Since: 3.2.7
287293 http2dataPushPromise :: [PushPromise]
288294 }
289295
296+-- | Default HTTP/2 specific data.
297+--
298+-- Since: 3.2.7
290299defaultHTTP2Data :: HTTP2Data
291300defaultHTTP2Data = HTTP2Data []
292301
302+-- | HTTP/2 push promise or sever push.
303+--
304+-- Since: 3.2.7
293305data PushPromise = PushPromise {
306+ -- | Accessor for a URL path in 'PushPromise'.
307+ -- E.g. \"\/style\/default.css\".
308+ --
309+ -- Since: 3.2.7
294310 promisedPath :: ByteString
311+ -- | Accessor for 'FilePath' in 'PushPromise'.
312+ -- E.g. \"FILE_PATH/default.css\".
313+ --
314+ -- Since: 3.2.7
295315 , promisedFile :: FilePath
316+ -- | Accessor for 'H.ResponseHeaders' in 'PushPromise'
317+ -- \"content-type\" must be specified.
318+ -- Default value: [].
319+ --
320+ --
321+ -- Since: 3.2.7
296322 , promisedResponseHeaders :: H.ResponseHeaders
323+ -- | Accessor for 'Weight' in 'PushPromise'.
324+ -- Default value: 16.
325+ --
326+ -- Since: 3.2.7
297327 , promisedWeight :: Weight
298328 }
299329
330+-- | Default push promise.
331+--
332+-- Since: 3.2.7
300333defaultPushPromise :: PushPromise
301334defaultPushPromise = PushPromise "" "" [] 16