linkcheck.httputil

Functions

get_content_type(headers)

Get the MIME type from the Content-Type header value, or 'application/octet-stream' if not found.

x509_to_dict(x509)

Parse a x509 pyopenssl object to a dictionary with keys subject, subjectAltName and optional notAfter.

linkcheck.httputil.get_content_type(headers)[source]

Get the MIME type from the Content-Type header value, or ‘application/octet-stream’ if not found.

Returns:

MIME type

Return type:

string

linkcheck.httputil.x509_to_dict(x509)[source]

Parse a x509 pyopenssl object to a dictionary with keys subject, subjectAltName and optional notAfter.