PythonQt.QtNetwork.QNetworkProxy · declarations 001
Back to PythonQt.QtNetwork.QNetworkProxy
CachingCapability
instance-attribute
CachingCapability: Any
DefaultProxy
instance-attribute
DefaultProxy: Any
FtpCachingProxy
instance-attribute
FtpCachingProxy: Any
HostNameLookupCapability
instance-attribute
HostNameLookupCapability: Any
HttpCachingProxy
instance-attribute
HttpCachingProxy: Any
HttpProxy
instance-attribute
HttpProxy: Any
ListeningCapability
instance-attribute
ListeningCapability: Any
NoProxy
instance-attribute
NoProxy: Any
ProxyType
instance-attribute
ProxyType: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Socks5Proxy
instance-attribute
Socks5Proxy: Any
TunnelingCapability
instance-attribute
TunnelingCapability: Any
UdpTunnelingCapability
instance-attribute
UdpTunnelingCapability: Any
applicationProxy
applicationProxy() -> Any
X.applicationProxy() -> PythonQt.QtNetwork.QNetworkProxy
Supplemental documentation: Qt 5 reference:
[static] QNetworkProxy QNetworkProxy::applicationProxy()
Returns the application level network proxying.
If a QAbstractSocket or QTcpSocket has the QNetworkProxy::DefaultProxy type, then the QNetworkProxy returned by this function is used.
See also QNetworkProxyFactory, setApplicationProxy(), QAbstractSocket::proxy(), and QTcpServer::proxy().
Upstream PySide2 reference signatures (binding differences may apply):
applicationProxy() -> PySide2.QtNetwork.QNetworkProxy
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#applicationProxy
capabilities
capabilities() -> Any
X.capabilities()
Supplemental documentation: Qt 5 reference:
QNetworkProxy::Capabilities QNetworkProxy::capabilities() const
Returns the capabilities of this proxy server.
This function was introduced in Qt 4.5.
See also setCapabilities() and type().
Upstream PySide2 reference signatures (binding differences may apply):
capabilities(self) -> PySide2.QtNetwork.QNetworkProxy.Capabilities
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#capabilities
hasRawHeader
hasRawHeader(headerName: Any) -> bool
X.hasRawHeader(headerName) -> bool
Supplemental documentation: Qt 5 reference:
bool QNetworkProxy::hasRawHeader(const QByteArray \&headerName) const
Returns true if the raw header headerName is in use for this proxy. Returns false
if the proxy is not of type
HttpProxy or
HttpCachingProxy.
This function was introduced in Qt 5.0.
See also rawHeader() and setRawHeader().
Upstream PySide2 reference signatures (binding differences may apply):
hasRawHeader(self, headerName: PySide2.QtCore.QByteArray) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#hasRawHeader
header
header(header: Any) -> Any
X.header(header) -> object
Supplemental documentation: Qt 5 reference:
QVariant QNetworkProxy::header(QNetworkRequest::KnownHeaders header) const
Returns the value of the known network header header if it is in use for this proxy. If it is not present, returns QVariant() (i.e., an invalid variant).
This function was introduced in Qt 5.0.
See also QNetworkRequest::KnownHeaders, rawHeader(), and setHeader().
Upstream PySide2 reference signatures (binding differences may apply):
header(self, header: PySide2.QtNetwork.QNetworkRequest.KnownHeaders) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#header
hostName
hostName() -> str
X.hostName() -> str
Supplemental documentation: Qt 5 reference:
QString QNetworkProxy::hostName() const
Returns the host name of the proxy host.
See also setHostName(), setPort(), and port().
Upstream PySide2 reference signatures (binding differences may apply):
hostName(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#hostName
isCachingProxy
isCachingProxy() -> bool
X.isCachingProxy() -> bool
Supplemental documentation: Qt 5 reference:
bool QNetworkProxy::isCachingProxy() const
Returns true if this proxy supports the
QNetworkProxy::CachingCapability
capability.
In Qt 4.4, the capability was tied to the proxy type, but since Qt 4.5 it is possible to remove the capability of caching from a proxy by calling setCapabilities().
This function was introduced in Qt 4.4.
See also capabilities(), type(), and isTransparentProxy().
Upstream PySide2 reference signatures (binding differences may apply):
isCachingProxy(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#isCachingProxy
isTransparentProxy
isTransparentProxy() -> bool
X.isTransparentProxy() -> bool
Supplemental documentation: Qt 5 reference:
bool QNetworkProxy::isTransparentProxy() const
Returns true if this proxy supports transparent tunneling of TCP connections. This
matches the
QNetworkProxy::TunnelingCapability
capability.
In Qt 4.4, the capability was tied to the proxy type, but since Qt 4.5 it is possible to remove the capability of caching from a proxy by calling setCapabilities().
This function was introduced in Qt 4.4.
See also capabilities(), type(), and isCachingProxy().
Upstream PySide2 reference signatures (binding differences may apply):
isTransparentProxy(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#isTransparentProxy
password
password() -> str
X.password() -> str
Supplemental documentation: Qt 5 reference:
QString QNetworkProxy::password() const
Returns the password used for authentication.
See also user(), setPassword(), and setUser().
Upstream PySide2 reference signatures (binding differences may apply):
password(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#password
port
port() -> int
X.port() -> int
Supplemental documentation: Qt 5 reference:
quint16 QNetworkProxy::port() const
Returns the port of the proxy host.
See also setHostName(), setPort(), and hostName().
Upstream PySide2 reference signatures (binding differences may apply):
port(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#port
rawHeader
rawHeader(headerName: Any) -> Any
X.rawHeader(headerName) -> PythonQt.QtCore.QByteArray
Supplemental documentation: Qt 5 reference:
QByteArray QNetworkProxy::rawHeader(const QByteArray \&headerName) const
Returns the raw form of header headerName. If no such header is present or the proxy is not of type HttpProxy or HttpCachingProxy, an empty QByteArray is returned, which may be indistinguishable from a header that is present but has no content (use hasRawHeader() to find out if the header exists or not).
Raw headers can be set with setRawHeader() or with setHeader().
This function was introduced in Qt 5.0.
See also header() and setRawHeader().
Upstream PySide2 reference signatures (binding differences may apply):
rawHeader(self, headerName: PySide2.QtCore.QByteArray) -> PySide2.QtCore.QByteArray
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#rawHeader
rawHeaderList
rawHeaderList() -> Any
X.rawHeaderList()
Supplemental documentation: Qt 5 reference:
QList\<QByteArray> QNetworkProxy::rawHeaderList() const
Returns a list of all raw headers that are set in this network proxy. The list is in the order that the headers were set.
If the proxy is not of type HttpProxy or HttpCachingProxy an empty QList is returned.
This function was introduced in Qt 5.0.
See also hasRawHeader() and rawHeader().
Upstream PySide2 reference signatures (binding differences may apply):
rawHeaderList(self) -> typing.List[PySide2.QtCore.QByteArray]
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#rawHeaderList
setApplicationProxy
setApplicationProxy(proxy: Any) -> None
X.setApplicationProxy(proxy)
Supplemental documentation: Qt 5 reference:
[static] void QNetworkProxy::setApplicationProxy(const QNetworkProxy \&networkProxy)
Sets the application level network proxying to be networkProxy.
If a QAbstractSocket or QTcpSocket has the QNetworkProxy::DefaultProxy type, then the QNetworkProxy set with this function is used. If you want more flexibility in determining which proxy is used, use the QNetworkProxyFactory class.
Setting a default proxy value with this function will override the application proxy factory set with QNetworkProxyFactory::setApplicationProxyFactory, and disable the use of a system proxy.
See also QNetworkProxyFactory, applicationProxy(), QAbstractSocket::setProxy(), and QTcpServer::setProxy().
Upstream PySide2 reference signatures (binding differences may apply):
setApplicationProxy(proxy: PySide2.QtNetwork.QNetworkProxy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setApplicationProxy
setCapabilities
setCapabilities(capab: Any) -> None
X.setCapabilities(capab)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setCapabilities(QNetworkProxy::Capabilities capabilities)
Sets the capabilities of this proxy to capabilities.
This function was introduced in Qt 4.5.
See also setType() and capabilities().
Upstream PySide2 reference signatures (binding differences may apply):
setCapabilities(self, capab: PySide2.QtNetwork.QNetworkProxy.Capabilities) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setCapabilities
setHeader
setHeader(header: Any, value: Any) -> None
X.setHeader(header, value)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setHeader(QNetworkRequest::KnownHeaders header, const QVariant \&value)
Sets the value of the known header header to be value, overriding any previously set headers. This operation also sets the equivalent raw HTTP header.
If the proxy is not of type HttpProxy or HttpCachingProxy this has no effect.
This function was introduced in Qt 5.0.
See also QNetworkRequest::KnownHeaders, setRawHeader(), and header().
Upstream PySide2 reference signatures (binding differences may apply):
setHeader(self, header: PySide2.QtNetwork.QNetworkRequest.KnownHeaders, value: typing.Any) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setHeader
setHostName
setHostName(hostName: str) -> None
X.setHostName(hostName)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setHostName(const QString \&hostName)
Sets the host name of the proxy host to be hostName.
See also hostName(), setPort(), and port().
Upstream PySide2 reference signatures (binding differences may apply):
setHostName(self, hostName: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setHostName
setPassword
setPassword(password: str) -> None
X.setPassword(password)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setPassword(const QString \&password)
Sets the password for proxy authentication to be password.
See also user(), setUser(), and password().
Upstream PySide2 reference signatures (binding differences may apply):
setPassword(self, password: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setPassword
setPort
setPort(port: int) -> None
X.setPort(port)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setPort(quint16 port)
Sets the port of the proxy host to be port.
See also hostName(), setHostName(), and port().
Upstream PySide2 reference signatures (binding differences may apply):
setPort(self, port: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setPort
setRawHeader
setRawHeader(headerName: Any, value: Any) -> None
X.setRawHeader(headerName, value)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setRawHeader(const QByteArray \&headerName, const QByteArray \&headerValue)
Sets the header headerName to be of value headerValue. If headerName corresponds to a known header (see QNetworkRequest::KnownHeaders), the raw format will be parsed and the corresponding "cooked" header will be set as well.
For example:
request.setRawHeader(QByteArray("Last-Modified"), QByteArray("Sun, 06 Nov 1994 08:49:37 GMT"));
will also set the known header LastModifiedHeader to be the QDateTime object of the parsed date.
Note: Setting the same header twice overrides the previous setting. To accomplish the behaviour of multiple HTTP headers of the same name, you should concatenate the two values, separating them with a comma (",") and set one single raw header.
If the proxy is not of type HttpProxy or HttpCachingProxy this has no effect.
This function was introduced in Qt 5.0.
See also QNetworkRequest::KnownHeaders, setHeader(), hasRawHeader(), and rawHeader().
Upstream PySide2 reference signatures (binding differences may apply):
setRawHeader(self, headerName: PySide2.QtCore.QByteArray, value: PySide2.QtCore.QByteArray) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setRawHeader
setType
setType(type: Any) -> None
X.setType(type)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setType(QNetworkProxy::ProxyType type)
Sets the proxy type for this instance to be type.
Note that changing the type of a proxy does not change the set of capabilities this QNetworkProxy object holds if any capabilities have been set with setCapabilities().
See also type() and setCapabilities().
Upstream PySide2 reference signatures (binding differences may apply):
setType(self, type: PySide2.QtNetwork.QNetworkProxy.ProxyType) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setType
setUser
setUser(userName: str) -> None
X.setUser(userName)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::setUser(const QString \&user)
Sets the user name for proxy authentication to be user.
See also user(), setPassword(), and password().
Upstream PySide2 reference signatures (binding differences may apply):
setUser(self, userName: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#setUser
swap
swap(other: Any) -> None
X.swap(other)
Supplemental documentation: Qt 5 reference:
void QNetworkProxy::swap(QNetworkProxy \&other)
Swaps this network proxy instance with other. This function is very fast and never fails.
This function was introduced in Qt 5.0.
Upstream PySide2 reference signatures (binding differences may apply):
swap(self, other: PySide2.QtNetwork.QNetworkProxy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#swap
type
type() -> Any
X.type()
Supplemental documentation: Qt 5 reference:
QNetworkProxy::ProxyType QNetworkProxy::type() const
Returns the proxy type for this instance.
See also setType().
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> PySide2.QtNetwork.QNetworkProxy.ProxyType
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#type
user
user() -> str
X.user() -> str
Supplemental documentation: Qt 5 reference:
QString QNetworkProxy::user() const
Returns the user name used for authentication.
See also setUser(), setPassword(), and password().
Upstream PySide2 reference signatures (binding differences may apply):
user(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxy.html#user