# Functions
CheckFormat validates that the data being requested is of a compatible content type.
No description provided by the author
ParseAccept validates a request Accept header and returns whether or not duplicate blocks are allowed in the response.
ParseByteRange returns the entity-bytes query parameter if one is set in the query string or nil if one is not set.
ParseContentType validates a response Content-Type header and returns a ContentType descriptor form and a boolean to indicate whether or not the header value was valid or not.
ParseFilename returns the filename query parameter or an error if the filename extension is not ".car".
ParseScope returns the dag-scope query parameter or an error if the dag-scope parameter is not one of the supported values.
ParseUrlPath parses an incoming IPFS Trustless Gateway path of the form /ipfs/<cid>[/<path>] and returns the root CID and the path.
RequestAcceptHeader returns the value for the Accept header for a Trustless Gateway request which will vary depending on whether duplicates are included or not.
ResponseContentTypeHeader returns the value for the Content-Type header for a Trustless Gateway response which will vary depending on whether duplicates are included or not.
# Constants
No description provided by the author
No description provided by the author
The default value for an unspecified "dups" parameter.
The default value for an unspecified "order" parameter.
The only valid filename extension.
One of two acceptable format parameter values.
One of two acceptable format parameter values.
One of two acceptable MIME types.
We only accept version 1 of the CAR MIME type.
One of two acceptable MIME types.
Magic cache control values.
# Variables
No description provided by the author
No description provided by the author
An http/1.1 chunk delimeter, used for specifying an early end to the response.
# Structs
ContentType represents a Content-Type descriptor for use with the response Content-Type header or the request Accept header specifically for Trustless Gateway requests and responses.
# Type aliases
No description provided by the author