gws.base.ows.client.request

Source code: gws.base.ows.client.request

Module Contents

class gws.base.ows.client.request.Args(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

headers: dict
method: gws.RequestMethod
params: dict
protocol: gws.OwsProtocol
url: str
verb: gws.OwsVerb
version: str
gws.base.ows.client.request.get(args: Args, **kwargs) gws.lib.net.HTTPResponse

Get a raw service response

gws.base.ows.client.request.get_text(args: Args, **kwargs) str
gws.base.ows.client.request.get_url(url: str, **kwargs) gws.lib.net.HTTPResponse