Interface IScrapeRequestContext

Request scrape

interface IScrapeRequestContext {
    action: SCRAPE;
    infoHashes: string[];
    isAnnounce: boolean;
    isConnect: boolean;
    isScrape: boolean;
    isSourceHTTP: boolean;
    isSourceUDP: boolean;
    sent: boolean;
    send(payload): Promise<void>;
}

Hierarchy (view full)

Implemented by

Properties

action: SCRAPE

Current action

infoHashes: string[]

Returns 20-byte SHA1 hash of the value of the info key from the metainfo file

isAnnounce: boolean

The current action is "announce"

isConnect: boolean

The current action is "connect"

isScrape: boolean

The current action is "scrape"

isSourceHTTP: boolean

The request source is HTTP

isSourceUDP: boolean

The request source is UDP

sent: boolean

Has an answer been sent

Methods