Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

21 řádky
908 B

  1. # A highish-level implementation of the HTTP/1.1 wire protocol (RFC 7230),
  2. # containing no networking code at all, loosely modelled on hyper-h2's generic
  3. # implementation of HTTP/2 (and in particular the h2.connection.H2Connection
  4. # class). There's still a bunch of subtle details you need to get right if you
  5. # want to make this actually useful, because it doesn't implement all the
  6. # semantics to check that what you're asking to write to the wire is sensible,
  7. # but at least it gets you out of dealing with the wire itself.
  8. from ._version import __version__
  9. PRODUCT_ID = "python-h11/" + __version__
  10. from ._util import ProtocolError, LocalProtocolError, RemoteProtocolError
  11. from ._events import *
  12. from ._connection import *
  13. from ._state import *
  14. __all__ = ["ProtocolError", "LocalProtocolError", "RemoteProtocolError"]
  15. __all__ += _events.__all__
  16. __all__ += _connection.__all__
  17. __all__ += _state.__all__