mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
minor fixes
This commit is contained in:
@@ -93,5 +93,5 @@ class FlowReadException(ProxyException):
|
||||
pass
|
||||
|
||||
|
||||
class ControlException(Exception):
|
||||
class ControlException(ProxyException):
|
||||
pass
|
||||
|
||||
@@ -227,7 +227,7 @@ class Request(message.Message):
|
||||
def query(self):
|
||||
# type: () -> multidict.MultiDictView
|
||||
"""
|
||||
The request query string as an :py:class:`MultiDictView` object.
|
||||
The request query string as an :py:class:`~netlib.multidict.MultiDictView` object.
|
||||
"""
|
||||
return multidict.MultiDictView(
|
||||
self._get_query,
|
||||
@@ -254,7 +254,7 @@ class Request(message.Message):
|
||||
"""
|
||||
The request cookies.
|
||||
|
||||
An empty :py:class:`multidict.MultiDictView` object if the cookie monster ate them all.
|
||||
An empty :py:class:`~netlib.multidict.MultiDictView` object if the cookie monster ate them all.
|
||||
"""
|
||||
return multidict.MultiDictView(
|
||||
self._get_cookies,
|
||||
@@ -329,7 +329,7 @@ class Request(message.Message):
|
||||
@property
|
||||
def urlencoded_form(self):
|
||||
"""
|
||||
The URL-encoded form data as an :py:class:`multidict.MultiDictView` object.
|
||||
The URL-encoded form data as an :py:class:`~netlib.multidict.MultiDictView` object.
|
||||
An empty multidict.MultiDictView if the content-type indicates non-form data
|
||||
or the content could not be parsed.
|
||||
"""
|
||||
@@ -359,7 +359,7 @@ class Request(message.Message):
|
||||
@property
|
||||
def multipart_form(self):
|
||||
"""
|
||||
The multipart form data as an :py:class:`MultipartFormDict` object.
|
||||
The multipart form data as an :py:class:`~netlib.multidict.MultiDictView` object.
|
||||
None if the content-type indicates non-form data.
|
||||
"""
|
||||
return multidict.MultiDictView(
|
||||
|
||||
@@ -73,7 +73,7 @@ class Response(message.Message):
|
||||
def cookies(self):
|
||||
# type: () -> multidict.MultiDictView
|
||||
"""
|
||||
The response cookies. A possibly empty :py:class:`multidict.MultiDictView`, where the keys are
|
||||
The response cookies. A possibly empty :py:class:`~netlib.multidict.MultiDictView`, where the keys are
|
||||
cookie name strings, and values are (value, attr) tuples. Value is a string, and attr is
|
||||
an ODictCaseless containing cookie attributes. Within attrs, unary attributes (e.g. HTTPOnly)
|
||||
are indicated by a Null value.
|
||||
|
||||
Reference in New Issue
Block a user