25.0.4 • Published 1 year ago

chunk-fetch v25.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

chunk-fetch

example of how a url looks like using chunk-fetch ipfs://someCidAsHostname/some/path

_ - hostname is ignored, url will start with the path and the path becomes the query, so ipfs://_/somepath becomes ipfs://somepath CID - a CID that is used for the query

method: HEAD - does not return a body, only returns headers hostname:

  • _ - ignores the hostname, path becomes the query path:
    • /path/to/dir/or/file - it can be any path including /, this path is the query that will be used with ipfs headers:
      • X-Copy - true | false - if true, a directory will be created with the CID, 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
  • CID - a CID identifier for some data path:
    • / - used for a directory,if the CID is a directory headers:
      • X-Copy - true | false - if true, a directory will be created with the CID, 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
    • /path/to/file - used for a file, if the CID is a file headers:
      • X-Copy - true | false - if true, a directory will be created with the CID, 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:

  • _ - ignores the hostname, path becomes the query path:
    • /path/to/dir/or/file - it can be any path including /, this path is the query that will be used with ipfs headers:
      • X-Timer - String - a number for a timeout
  • CID - a CID identifier for some data path:
    • / - used for a directory if the CID is a directory headers:
      • X-Timer - String - a number for a timeout
    • /path/to/file - used for a file, if the CID is a file headers:
      • X-Timer - String - a number for a timeout

method: POST - return a body hostname:

  • _ - ignores the hostname, path becomes the query path:
    • /path/to/dir/or/file - it can be any path including /, this path is the query that will be used with ipfs headers:
      • X-Opt - String - options to use for the content, stringified object

method: DELETE - returns a body hostname:

  • _ - ignores the hostname, path becomes the query path:
    • /path/to/dir/or/file - it can be any path including /, this path is the query that will be used with ipfs headers:
      • X-Opt - String - options to use for the content, stringified object
25.0.2

1 year ago

25.0.1

1 year ago

25.0.4

1 year ago

25.0.3

1 year ago

25.0.0

1 year ago

24.0.5

1 year ago

24.0.9

1 year ago

24.0.8

1 year ago

24.0.7

1 year ago

24.0.6

1 year ago

24.0.4

1 year ago

24.0.3

1 year ago

24.0.2

1 year ago

24.0.1

1 year ago

24.0.0

1 year ago

23.0.9

1 year ago

23.0.4

1 year ago

23.0.3

1 year ago

23.0.6

1 year ago

23.0.5

1 year ago

23.0.8

1 year ago

23.0.7

1 year ago

23.0.2

1 year ago

23.0.1

1 year ago

23.0.0

1 year ago

22.0.3

1 year ago

22.0.2

1 year ago

22.0.9

1 year ago

22.0.8

1 year ago

22.0.7

1 year ago

22.0.6

1 year ago

22.0.5

1 year ago

22.0.4

1 year ago

22.0.1

1 year ago

22.0.0

2 years ago

21.0.2

2 years ago

21.0.1

2 years ago

21.0.4

2 years ago

21.0.3

2 years ago

21.0.0

2 years ago

21.0.9

2 years ago

21.0.6

2 years ago

21.0.5

2 years ago

21.0.8

2 years ago

21.0.7

2 years ago

20.0.1

2 years ago

20.0.0

2 years ago

20.0.5

2 years ago

20.0.4

2 years ago

20.0.3

2 years ago

20.0.2

2 years ago

20.0.9

2 years ago

20.0.8

2 years ago

20.0.7

2 years ago

20.0.6

2 years ago

19.0.7

2 years ago

19.0.6

2 years ago

19.0.9

2 years ago

19.0.8

2 years ago

18.0.9

2 years ago

19.0.1

2 years ago

18.0.8

2 years ago

19.0.0

2 years ago

18.0.7

2 years ago

19.0.3

2 years ago

18.0.6

2 years ago

19.0.2

2 years ago

19.0.5

2 years ago

19.0.4

2 years ago

18.0.1

2 years ago

17.0.7

2 years ago

17.0.6

2 years ago

17.0.9

2 years ago

17.0.8

2 years ago

17.0.5

2 years ago

17.0.4

2 years ago

17.0.3

2 years ago

17.0.2

2 years ago

17.0.1

2 years ago

17.0.0

2 years ago

16.0.9

2 years ago

16.0.8

2 years ago

16.0.7

2 years ago

16.0.6

2 years ago

16.0.5

2 years ago

16.0.4

2 years ago

16.0.3

2 years ago

16.0.2

2 years ago

16.0.1

2 years ago

16.0.0

2 years ago

15.0.8

2 years ago

15.0.7

2 years ago

15.0.6

2 years ago

15.0.5

2 years ago

15.0.4

2 years ago

15.0.3

2 years ago

15.0.2

2 years ago

15.0.1

2 years ago

15.0.0

2 years ago

10.0.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

3.9.0

2 years ago

3.8.0

2 years ago

3.7.0

2 years ago

3.6.0

2 years ago

3.5.3

2 years ago

3.5.2

2 years ago