Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def encoder(self):
if self._encoder: return self._encoder
import hpack
self._encoder = hpack.hpack.Encoder()
return self._encoder
def decoder(self):
if self._decoder: return self._decoder
import hpack
self._decoder = hpack.hpack.Decoder()
return self._decoder