RangerMauve / hypercore-fetch

Implementation of Fetch that uses the Hyper SDK for loading p2p content
MIT License
36 stars 12 forks source link

Return directory listing with full metadata #92

Closed josephmturner closed 10 months ago

josephmturner commented 11 months ago

This PR adds the option to receive the raw node data from hyperdrive by passing the header Accept: application/json; metadata=full. Media type parameters are described here.

Note that directories (entry prefixes) lack seq and value properties.

This change would simplify the frontend logic in hyperdrive.el for displaying directory contents.

josephmturner commented 10 months ago

To avoid adding hyperdrive-specific code, let's consider more general options for directory listings with metadata in #73.