Open source

Fetches a file of a published version as it is

A picture as a picture, anything else as plain text or as bytes - never as something a browser would run: a page or a script is sent as text, under a sandboxing content security policy. Bytes, and anything asked for with download, are sent to be saved.

get/sources/{publicKey}/versions/{version}/raw/{path}

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/sources/{publicKey}/versions/{version}/raw/{path}
  • Auth: none declared

Path parameters

publicKeystring required

The public key of the lambda

versioninteger required

The number of the version, counting from 1

pathstring required

Its path below the project's folder, encoded as one segment

Query parameters

downloadstring

Anything but empty sends it to be saved rather than shown: ?download=1

Response

The file: a picture, text/plain or application/octet-stream

Changes

No recorded changes to this operation across all 1 revision of this API.