postPieceHandler
postPieceHandler(
pieceCid,uuid?,options?):HttpHandler
Defined in: packages/synapse-core/src/mocks/pdp.ts:122
Creates a handler that supports only one pieceCid Returns a UUID for 201, or a CID for 200
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
pieceCid | string |
uuid? | string |
options? | PDPMockOptions |
Returns
Section titled “Returns”HttpHandler