log-fetch
v24.0.1
Published
Implementation of Fetch that uses the Dat SDK for loading p2p content
Downloads
18
Readme
log-fetch
example of how a url looks like using log-fetch
hyper://someKeyAsHostname/some/path
_
- the drive owned by the user
Key
- a public key of a drive
method: HEAD
- does not return a body, only returns headers
hostname:
_
- user's drive path:/path/to/dir/or/file
- it can be any path including/
headers:X-Copy
-true
|false
- if true, a directory will be created with the name being the key of the drive, the data will be stored inside that directory. if false, the data will be stored using the path but without the new directory.X-Timer
-String
- a number for a timeout
Key
- key of a drive path:/path/to/dir/or/file
- it can be any path including/
headers:X-Copy
-true
|false
- if true, a directory will be created with the name being the key of the drive, the data will be stored inside that directory. if false, the data will be stored using the path but without the new directory.X-Timer
-String
- a number for a timeout
method: GET
- return a body
hostname:
_
- user's drive path:/path/to/dir/or/file
- it can be any path including/
headers:X-Timer
-String
- a number for a timeout
Key
- key of a drive path:/path/to/dir/or/file
- it can be any path including/
headers:X-Timer
-String
- a number for a timeout
method: POST
- return a body
hostname:
_
- user's drive path:/path/to/dir/or/file
- it can be any path including/
headers:X-Opt
-String
- options to use for the content, stringified object
method: DELETE
- returns a body
hostname:
_
- user's drive path:/path/to/dir/or/file
- it can be any path including/
headers:X-Opt
-String
- options to use for the content, stringified object