Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/api/common.py
Show First 20 Lines • Show All 1,161 Lines • ▼ Show 20 Lines | ) -> HttpResponse: | ||||
response = render( | response = render( | ||||
request, | request, | ||||
"deposit/deposit_receipt.xml", | "deposit/deposit_receipt.xml", | ||||
context=context, | context=context, | ||||
content_type="application/xml", | content_type="application/xml", | ||||
status=status, | status=status, | ||||
) | ) | ||||
response._headers["location"] = "Location", iris[iri_key] # type: ignore | response["Location"] = iris[iri_key] | ||||
return response | return response | ||||
@abstractmethod | @abstractmethod | ||||
def process_post( | def process_post( | ||||
self, | self, | ||||
request, | request, | ||||
headers: ParsedRequestHeaders, | headers: ParsedRequestHeaders, | ||||
collection_name: str, | collection_name: str, | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |