mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
implement HTTP/3 stream hijacking
This commit is contained in:
parent
a54816867f
commit
48a2cce9df
10 changed files with 152 additions and 37 deletions
|
@ -33,7 +33,7 @@ var _ = Describe("Response Writer", func() {
|
|||
fields := make(map[string][]string)
|
||||
decoder := qpack.NewDecoder(nil)
|
||||
|
||||
frame, err := parseNextFrame(str)
|
||||
frame, err := parseNextFrame(str, nil)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(frame).To(BeAssignableToTypeOf(&headersFrame{}))
|
||||
headersFrame := frame.(*headersFrame)
|
||||
|
@ -49,7 +49,7 @@ var _ = Describe("Response Writer", func() {
|
|||
}
|
||||
|
||||
getData := func(str io.Reader) []byte {
|
||||
frame, err := parseNextFrame(str)
|
||||
frame, err := parseNextFrame(str, nil)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(frame).To(BeAssignableToTypeOf(&dataFrame{}))
|
||||
df := frame.(*dataFrame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue