digitalbazaar / pyld

JSON-LD processor written in Python
https://json-ld.org/
Other
606 stars 131 forks source link

Allow passing custom headers and session into requests_document_loader #176

Open eghuro opened 1 year ago

eghuro commented 1 year ago

Sample usage:

jsonld.set_document_loader(
    jsonld.requests_document_loader(
        timeout=Config.TIMEOUT,
        session=session,
        headers={"Accept": accept},
    )
)