File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 22-- | I think some were added/removed in major Node versions.
33module Node.Http2.PaddingStrategy where
44
5+ import Prelude
6+
7+ import Data.Generic.Rep (class Generic )
8+ import Data.Newtype (class Newtype )
9+
10+ newtype PaddingStrategy = PaddingStrategy Int
11+
12+ derive instance Eq PaddingStrategy
13+ derive instance Ord PaddingStrategy
14+ derive instance Newtype PaddingStrategy _
15+ derive instance Generic PaddingStrategy _
16+ derive newtype instance Show PaddingStrategy
17+
518foreign import paddingStrategyNone :: Int
619foreign import paddingStrategyMax :: Int
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Prelude
66
77import Data.Generic.Rep (class Generic )
88import Data.Newtype (class Newtype )
9+ import Node.Http2.PaddingStrategy (PaddingStrategy )
910import Node.TLS.Types (Endpoint )
1011
1112-- | `Http2Session` extends `EventEmitter`
@@ -81,7 +82,7 @@ type Http2CreateSecureServerOptions r =
8182 , maxHeaderListPairs :: Int
8283 , maxOutstandingPings :: Int
8384 , maxSendHeaderBlockLength :: Int
84- , paddingStrategy :: Int
85+ , paddingStrategy :: PaddingStrategy
8586 , peerMaxConcurrentStreams :: Int
8687 , maxSessionInvalidFrames :: Int
8788 , maxSessionRejectedStreams :: Int
You can’t perform that action at this time.
0 commit comments