9.3.1.13.1.2.1.3. GeoHealthCheck.plugins.probe.http
9.3.1.13.1.2.1.3.1. Classes
Do HTTP GET Request, to poll/ping any Resource bare url. |
|
Do HTTP GET Request, to poll/ping any Resource bare url with query string. |
|
Do HTTP POST Request, to send POST request to |
9.3.1.13.1.2.1.3.2. Module Contents
- class GeoHealthCheck.plugins.probe.http.HttpGet
Bases:
GeoHealthCheck.probe.ProbeDo HTTP GET Request, to poll/ping any Resource bare url.
- NAME = 'HTTP GET Resource URL'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'Simple HTTP GET on Resource URL'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- RESOURCE_TYPE = '*:*'
Type of GHC Resource e.g. ‘OGC:WMS’, default not applicable.
- REQUEST_METHOD = 'GET'
HTTP request method capitalized, GET (default) or POST.
- CHECKS_AVAIL
Checks avail
- class GeoHealthCheck.plugins.probe.http.HttpGetQuery
Bases:
HttpGetDo HTTP GET Request, to poll/ping any Resource bare url with query string.
- NAME = 'HTTP GET Resource URL with query'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = Multiline-String
Show Value
""" HTTP GET Resource URL with ?query string to be user-supplied (without ?) """
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- REQUEST_TEMPLATE = '?{query}'
Template in standard Python str.format(*args). The variables like {service} and {version} within a template are filled from actual values for parameters defined in PARAM_DEFS and substituted from values or constant values specified by user in GUI and stored in DB.
- PARAM_DEFS
Param defs
- class GeoHealthCheck.plugins.probe.http.HttpPost
Bases:
HttpGetDo HTTP POST Request, to send POST request to Resource bare url with POST body.
- NAME = 'HTTP POST Resource URL with body'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = Multiline-String
Show Value
""" HTTP POST to Resource URL with body content(-type) to be user-supplied """
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- REQUEST_METHOD = 'POST'
HTTP request method capitalized, GET (default) or POST.
- REQUEST_HEADERS
dict of optional HTTP request headers.
- REQUEST_TEMPLATE = '{body}'
Template in standard Python str.format(*args). The variables like {service} and {version} within a template are filled from actual values for parameters defined in PARAM_DEFS and substituted from values or constant values specified by user in GUI and stored in DB.
- PARAM_DEFS
Param defs
- get_request_headers()
Overridden from Probe: construct request_headers via parameter substitution from content_type Parameter.