log-fetch

24.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i log-fetch

Weekly Downloads

2

Version

24.0.1

License

MIT

Unpacked Size

22.8 kB

Total Files

5

Last publish

Collaborators

  • thezzeds