archivebox.memento.views

Read-only Memento negotiation: https://www.rfc-editor.org/rfc/rfc7089.html#section-3

The original URL (URI-R) identifies the page; canonical snapshots (URI-M) identify captures. Existing /archive/<url> and snapshot?format=link routes provide the TimeGate (URI-G) and TimeMap (URI-T), without capture hooks or new archive steps.

Module Contents

Functions

_captures

_links

_archive_type

_enclosures

add_memento_headers

timemap_response

timegate_response

Data

ARCHIVE_TYPES

API

archivebox.memento.views.ARCHIVE_TYPES[source]

None

archivebox.memento.views._captures(request, url)[source]
archivebox.memento.views._archive_type(path)[source]
archivebox.memento.views._enclosures(request, snapshot)[source]
archivebox.memento.views.add_memento_headers(request, snapshot, response, path='', primary=True)[source]
archivebox.memento.views.timemap_response(request, snapshot)[source]
archivebox.memento.views.timegate_response(request, url)[source]