ServicesScanDALHTTP APIBrowser

Read a resource blob

GET
/files

Authorize the resource and resolve its storage on the server. A single HTTP byte Range is relative to the logical blob, including packed slices. Returns Accept-Ranges, Content-Length and an ETag for this slice. Supports If-Match, If-None-Match and ETag If-Range. Set crossOrigin=use-credentials on img and video elements before setting src. No credentials occur in the URL. Responses are private and never cached.

Authorization

cookie__Host-spiral_auth<token>

Query Parameters

uri*string

A spiral:// resource address, with no credentials, query, fragment or encoded traversal.

Formaturi
offset?integer
Range0 <= value
Default0
size?integer

Byte length of the logical blob. Omit to read to the object's end.

Range0 <= value
etag?string

Required upstream object ETag.

version?string

Required upstream object version.

mediaType?string
Default"application/octet-stream"

Header Parameters

Range?string
If-Range?string
If-Match?string
If-None-Match?string

Response Body

Complete logical blob bytes.

curl -X GET 'https://scandal.spiraldb.dev/files?uri=http%3A%2F%2Fexample.com'
Empty