add a SetQuicHeaders function to h2quic.Server

fixes #156
This commit is contained in:
Lucas Clemente
2016-05-31 15:38:21 +02:00
parent ae778fc042
commit a7afffe700
4 changed files with 86 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ var _ = Describe("Version", func() {
Expect(protocol.SupportedVersionsAsTags).To(Equal([]byte("Q030Q031Q032Q033")))
})
It("has proper version list", func() {
Expect(protocol.SupportedVersionsAsString).To(Equal("33,32,31,30"))
})
It("recognizes supported versions", func() {
Expect(protocol.IsSupportedVersion(0)).To(BeFalse())
Expect(protocol.IsSupportedVersion(protocol.SupportedVersions[0])).To(BeTrue())