mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
http3: add a Context method to the StreamCreator interface (#3601)
This commit is contained in:
parent
1283a1f215
commit
85fbfb9405
2 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@ type HTTPStreamer interface {
|
|||
}
|
||||
|
||||
type StreamCreator interface {
|
||||
// Context returns a context that is cancelled when the underlying connection is closed.
|
||||
Context() context.Context
|
||||
OpenStream() (quic.Stream, error)
|
||||
OpenStreamSync(context.Context) (quic.Stream, error)
|
||||
OpenUniStream() (quic.SendStream, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue