File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ module Node.Http2.Session
3838 , state
3939 , type_
4040 , unref
41- , altsvc
41+ , altsvcStreamId
42+ , altsvcOrigin
4243 , origin
4344 , onAltsvc
4445 , onOrigin
@@ -49,7 +50,6 @@ module Node.Http2.Session
4950
5051import Prelude
5152
52- import Data.Either (Either (..))
5353import Data.Function.Uncurried (Fn1 , runFn1 )
5454import Data.Maybe (Maybe , fromMaybe )
5555import Data.Nullable (Nullable , toMaybe )
@@ -276,12 +276,14 @@ unref s = runEffectFn1 unrefImpl s
276276
277277foreign import unrefImpl :: forall endpoint . EffectFn1 (Http2Session endpoint ) (Socket )
278278
279- altsvc :: Http2Session Server -> String -> Either Int String -> Effect Unit
280- altsvc s alt originOrStream = case originOrStream of
281- Left streamId -> runEffectFn3 altsvcStreamImpl s alt streamId
282- Right origin' -> runEffectFn3 altsvcOriginImpl s alt origin'
279+ altsvcStreamId :: Http2Session Server -> String -> Int -> Effect Unit
280+ altsvcStreamId s alt streamId = runEffectFn3 altsvcStreamImpl s alt streamId
283281
284282foreign import altsvcStreamImpl :: EffectFn3 (Http2Session Server ) (String ) Int (Unit )
283+
284+ altsvcOrigin :: Http2Session Server -> String -> String -> Effect Unit
285+ altsvcOrigin s alt origin' = runEffectFn3 altsvcOriginImpl s alt origin'
286+
285287foreign import altsvcOriginImpl :: EffectFn3 (Http2Session Server ) (String ) String (Unit )
286288
287289origin :: Http2Session Server -> Array String -> Effect Unit
You can’t perform that action at this time.
0 commit comments