Files
tactical-shooter/server/server-browser-api/venv/lib/python3.11/site-packages/httptools/parser/parser.pyi
T
shawn e7299b17e9 Phase 7: netfox + godot-jolt stack upgrade
Stack installed:
- netfox v1.35.3 (core + extras + noray + internals)
- godot-jolt v0.16.0-stable

Architecture:
- Server: ENet transport (works headless, no netfox deps)
- Client/Editor: netfox rollback (RollbackSynchronizer, TickInterpolator)

New/modified:
- docs/migration-netfox-plan.md — migration architecture
- scripts/network/network_manager.gd — netfox-aware ENet fallback
- scripts/network/player.gd — clean base player
- client/characters/player_netfox.gd — rollback player w/ WeaponManager
- client/characters/input/player_net_input.gd — BaseNetInput subclass
- client/characters/character/fps_character_controller.gd — netfox input feed
- client/weapons/ — weapon data, registry, TacticalWeaponHitscan, WeaponManager
- client/scripts/round_replicator.gd — client-side round state bridge
- server/scripts/round_manager.gd — improved state machine
- server/scripts/plugin_api/plugin_manager.gd — refined plugin system
- config: enemy_tag, ally_tag for meatball targeting

Removed: old C++ SimulationServer GDExtension (replaced by netfox rollback)
2026-07-02 17:39:22 -04:00

59 lines
2.1 KiB
Python

from array import array
from .protocol import HTTPProtocol
class HttpParser:
def __init__(self, protocol: HTTPProtocol | object) -> None:
"""The HTTP parser.
Args:
protocol (HTTPProtocol): Callback interface for the parser.
"""
def set_dangerous_leniencies(
self,
lenient_headers: bool | None = None,
lenient_chunked_length: bool | None = None,
lenient_keep_alive: bool | None = None,
lenient_transfer_encoding: bool | None = None,
lenient_version: bool | None = None,
lenient_data_after_close: bool | None = None,
lenient_optional_lf_after_cr: bool | None = None,
lenient_optional_cr_before_lf: bool | None = None,
lenient_optional_crlf_after_chunk: bool | None = None,
lenient_spaces_after_chunk_size: bool | None = None,
) -> None:
"""Set dangerous leniencies for the parser."""
def get_http_version(self) -> str:
"""Retrieve the HTTP protocol version e.g. "1.1"."""
def should_keep_alive(self) -> bool:
"""Return `True` if keep-alive mode is preferred."""
def should_upgrade(self) -> bool:
"""Return `True` if the parsed request is a valid Upgrade request.
The method exposes a flag set just before on_headers_complete.
Calling this method earlier will only yield `False`."""
def feed_data(self, data: bytes | bytearray | memoryview | array[int]) -> None:
"""Feed data to the parser.
Will eventually trigger callbacks on the ``protocol`` object.
On HTTP upgrade, this method will raise an
``HttpParserUpgrade`` exception, with its sole argument
set to the offset of the non-HTTP data in ``data``.
"""
class HttpRequestParser(HttpParser):
"""Used for parsing http requests from the server side."""
def get_method(self) -> bytes:
"""Retrieve the HTTP method of the request."""
class HttpResponseParser(HttpParser):
"""Used for parsing http responses from the client side."""
def get_status_code(self) -> int:
"""Retrieve the status code of the HTTP response."""