scistag.webstag.server.web_request.WebRequest¶
- class WebRequest(path, relative_path, method, headers, body, parameters, base_url, url, host_url, remote_addr, environ, url_root, mimetype, host)[source]¶
Bases:
objectDefines the parameters of a web request
Methods
Attributes
__annotations____dataclass_fields____dataclass_params____dict____doc____hash____module____weakref__list of weak references to the object (if defined)
The absolute url path (excluding host/IP)
The relative URL path
The request method, e.g.
The headers passed in
The body data of the POST request
The query parameters
The base url, e.g.
The full url pointing to our service http://localhost/myClass/myMethod
The url to the host, e.g.
The clients' IP, e.g.
The request headers, e.g.
The url of the blueprint/service being called, e.g.
The request body's content type, e.g.
The host name/IP, e.g.
- base_url: str¶
The base url, e.g. http://localhost/myClass/myMethod
- host_url: str¶
The url to the host, e.g. http://localhost
- url: str¶
The full url pointing to our service http://localhost/myClass/myMethod
- url_root: str¶
The url of the blueprint/service being called, e.g. http://localhost/