Skip to content

HTTP Retrieval Client #668

@hannahhoward

Description

@hannahhoward

Goals

Add a retrieve-piece command to boost CLI

How

Command syntax:

boost retrieve [command options] [pieceCID] [outputFile]

OPTIONS:
   --providers value - list of provider addresses, as string, seperated by comma

For now --providers is required (future version will scan the chain)

Implementation:

  • query the chain to convert provider addresses to peer ids
  • send query ask v2 piece query -- if not connection on v2, assume we skip the provider
  • if v2 responds with no piece protocols (will happen if no HTTP support), skip the provider
  • collect successful queries, and attempt HTTP piece retrieval and write to specified file if successful

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions