.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.html2.WebViewHandlerRequest:
==========================================================================================================================================
|phoenix_title| **wx.html2.WebViewHandlerRequest**
==========================================================================================================================================
A class giving access to various parameters of a webview request.
:ref:`wx.html2.WebView`
.. versionadded:: 4.3/wxWidgets-3.3.0
.. seealso:: :meth:`wx.html2.WebViewHandler.StartRequest`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
WebViewHandlerRequest:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.html2.WebViewHandlerRequest.GetData`
:meth:`~wx.html2.WebViewHandlerRequest.GetHeader` Returns a header from the request or an empty string if the header could not be found.
:meth:`~wx.html2.WebViewHandlerRequest.GetMethod`
:meth:`~wx.html2.WebViewHandlerRequest.GetRawURI`
:meth:`~wx.html2.WebViewHandlerRequest.GetURI`
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.html2.WebViewHandlerRequest.Data` See :meth:`~wx.html2.WebViewHandlerRequest.GetData`
:attr:`~wx.html2.WebViewHandlerRequest.Method` See :meth:`~wx.html2.WebViewHandlerRequest.GetMethod`
:attr:`~wx.html2.WebViewHandlerRequest.RawURI` See :meth:`~wx.html2.WebViewHandlerRequest.GetRawURI`
:attr:`~wx.html2.WebViewHandlerRequest.URI` See :meth:`~wx.html2.WebViewHandlerRequest.GetURI`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.html2.WebViewHandlerRequest(object)
A class giving access to various parameters of a webview request.
.. method:: GetData(self)
:rtype: `InputStream`
:returns:
The body data of the request of ``null`` if nothing was posted.
.. method:: GetHeader(self, name)
Returns a header from the request or an empty string if the header could not be found.
:param `name`: Name of the header field
:type `name`: string
:rtype: `str`
.. method:: GetMethod(self)
:rtype: `str`
:returns:
The requests ``HTTP`` method (e.g. ``POST``, ``GET``, ``OPTIONS``).
.. method:: GetRawURI(self)
:rtype: `str`
:returns:
The unmodified url of the request.
.. method:: GetURI(self)
:rtype: `str`
:returns:
The url of the request. Can be modified by the backend for compatibility.
.. attribute:: Data
See :meth:`~wx.html2.WebViewHandlerRequest.GetData`
.. attribute:: Method
See :meth:`~wx.html2.WebViewHandlerRequest.GetMethod`
.. attribute:: RawURI
See :meth:`~wx.html2.WebViewHandlerRequest.GetRawURI`
.. attribute:: URI
See :meth:`~wx.html2.WebViewHandlerRequest.GetURI`