:py:mod:`salo.events.suricata.http` =================================== .. py:module:: salo.events.suricata.http Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: salo.events.suricata.http.HTTPModelFull salo.events.suricata.http.HTTPModel Attributes ~~~~~~~~~~ .. autoapisummary:: salo.events.suricata.http.MAX_FUIDS salo.events.suricata.http.HTTP_VERSIONS salo.events.suricata.http.METHODS salo.events.suricata.http.STATUSES .. py:data:: MAX_FUIDS :annotation: = 2 .. py:data:: HTTP_VERSIONS :annotation: = ['HTTP/1.0', 'HTTP/1.1'] .. py:data:: METHODS :annotation: = ['GET', 'POST'] .. py:data:: STATUSES .. py:class:: HTTPModelFull(__pydantic_self__, **data: Any) Bases: :py:obj:`salo.SaloEventModel` Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details. __pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects. .. py:class:: Config .. py:attribute:: fields .. py:attribute:: http_port :annotation: :Optional[int] .. py:attribute:: http_hostname :annotation: :str .. py:attribute:: http_uri :annotation: :str .. py:attribute:: http_user_agent :annotation: :str .. py:attribute:: http_content_type :annotation: :str .. py:attribute:: http_cookie :annotation: :Optional[str] .. py:attribute:: http_length :annotation: :int .. py:attribute:: http_status_code :annotation: :Optional[int] .. py:attribute:: http_version :annotation: :Optional[str] .. py:attribute:: http_method :annotation: :str .. py:attribute:: http_referrer :annotation: :Optional[str] .. py:attribute:: http_request_headers :annotation: :Optional[List[Dict]] .. py:attribute:: http_response_headers :annotation: :Optional[List[Dict]] .. py:method:: set_http_version(cls, v) .. py:method:: set_http_status_code(cls, v) .. py:class:: HTTPModel(__pydantic_self__, **data: Any) Bases: :py:obj:`salo.events.suricata.base.SuricataModel` Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details. __pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects. .. py:attribute:: _refs :annotation: :List[str] = ['https://suricata.readthedocs.io/en/suricata-6.0.0/output/eve/eve-json-format.html#event-type-http'] .. py:attribute:: event_type :annotation: :str .. py:attribute:: dest_port :annotation: :int .. py:attribute:: http :annotation: :Optional[Union[HTTPModelFull, Dict]] .. py:method:: set_values(cls, values) .. py:method:: get_options(self, *args, **kwargs)