linkahead.connection.interface module
This module defines the CaosDBServerConnection interface.
- class linkahead.connection.interface.CaosDBHTTPResponse
Bases:
ABC
An abstract class which defines a minimal interface for responses of the LinkAheadServer.
- abstract close()
close.
Close this response. Depending on the implementation this might also close underlying streams, sockets etc.
- abstract getheader(name: str, default=None)
Return the value of the header name or the value of default if there is no such header.
If there are multiple headers with that name, return all of the values joined by ‘, ‘. If default is an iterable, its elements are returned likewise.