Verified Commit 26d2b56c authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Copy header data for later access

parent 1a7cb927
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,6 +97,6 @@ repos:
    pass_filenames: false
    additional_dependencies:
    - anyio ~=3.1
    - kilter.protocol ~=0.4.0
    - kilter.protocol ~=0.5.0
    - sphinx
    - trio-typing
+2 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ class HeadersAccessor(AsyncContextManager["HeaderIterator"]):
		while self.session.phase <= Phase.HEADERS:
			match (await self.session.broadcast.receive()):
				case Header() as header:
					header.freeze()
					self._table.append(header)
					seen.add(id(header))
					try:
@@ -403,6 +404,7 @@ class HeadersAccessor(AsyncContextManager["HeaderIterator"]):
		while self.session.phase <= Phase.HEADERS:
			match (await self.session.broadcast.receive()):
				case Header() as header:
					header.freeze()
					self._table.append(header)
				case EndOfHeaders():
					return
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ requires-python = "~=3.10"
dependencies = [
	"anyio ~=3.0",
	"async-generator ~=1.2",
	"kilter.protocol ~=0.4.0",
	"kilter.protocol ~=0.5.0",
	"typing-extensions ~=4.0",
]
classifiers = [