OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models.
Some OWS endpoint classes allow HTTP Headers via a headers dict structure to be passed on creation. For example WebMapService. But in this case these headers are only passed/forwarded when creating a WMS 1.3.0 instance.
For other OWS types like WFS, WMTS and TMS (and probably more) no headers can be passed.
This is needed in cases where a client needs to pass specific HTTP Header name/values, for example for Authentication via Bearer Token.
Some OWS endpoint classes allow HTTP Headers via a
headers
dict structure to be passed on creation. For example WebMapService. But in this case theseheaders
are only passed/forwarded when creating a WMS 1.3.0 instance.For other OWS types like WFS, WMTS and TMS (and probably more) no
headers
can be passed.This is needed in cases where a client needs to pass specific HTTP Header name/values, for example for Authentication via Bearer Token.