MCPcopy
hub / github.com/mitmproxy/mitmproxy / _get_urlencoded_form

Method _get_urlencoded_form

mitmproxy/http.py:932–939  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

930 )
931
932 def _get_urlencoded_form(self):
933 is_valid_content_type = (
934 "application/x-www-form-urlencoded"
935 in self.headers.get("content-type", "").lower()
936 )
937 if is_valid_content_type:
938 return tuple(url.decode(self.get_text(strict=False)))
939 return ()
940
941 def _set_urlencoded_form(self, form_data: Sequence[tuple[str, str]]) -> None:
942 """

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
decodeMethod · 0.45
get_textMethod · 0.45

Tested by

no test coverage detected