Skip to content

Skylink HEAD Request

Peter-Jan Brone requested to merge skynet-support-head-request into master

MERGE REQUEST

Overview

This MR adds a route to support HEAD requests for the Skylink route. The HEAD request will return the exact headers just as they would be when performing the GET request. This means that people can get at the metadata, content length, content type etc before performing the actual download.

Please note that currently a HEAD request for a non-existing Skylink will stall. This is not ideal, we should timebox it using a timeout and return a 404 (opposed to the current 500) in case we can not find the requested Skylink.

Example for Visual changes (ie Screenshot)

N/A

Issues Closed

N/A

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods, or updating methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to work flow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog updated

Merge request reports