GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.html2.WebViewHandlerResponse
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx.html2

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.html2.WebViewHandlerResponse — wxPython 4.3.2 Docs

phoenix_title wx.html2.WebViewHandlerResponse¶

A class giving access to various webview response parameters.

Usually a wx.html2.WebViewHandler would set various parameters required for the response like HTTP status, various headers and must then call Finish to complete the response or call FinishWithError to abort the request.

wx.html2.WebView

Added in version 4.3/wxWidgets-3.3.0.

See also

wx.html2.WebViewHandler.StartRequest


class_hierarchy Class Hierarchy¶

Inheritance diagram for class WebViewHandlerResponse:

Inheritance diagram of WebViewHandlerResponse


method_summary Methods Summary¶

FinishWithError

Finishes the request as an error.

SetContentType

Sets the MIME type of the response.

SetHeader

Sets a response header which will be sent to the web view.

SetStatus

Sets the status code of the response.


api Class API¶

class wx.html2.WebViewHandlerResponse(object)¶

A class giving access to various webview response parameters.


Methods¶

FinishWithError(self)¶

Finishes the request as an error.

This will notify that the request could not produce any data.

Return type:

None

See also

Finish



SetContentType(self, contentType)¶

Sets the MIME type of the response.

Parameters:

contentType (string) – MIME type of the response content

Return type:

None



SetHeader(self, name, value)¶

Sets a response header which will be sent to the web view.

The header will be added if it hasn’t been set before or replaced otherwise.

Parameters:
  • name (string) – Name of the header

  • value (string) – String value of the header

Return type:

None



SetStatus(self, status)¶

Sets the status code of the response.

Parameters:

status (int) – HTTP status code

Return type:

None

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.