UNPKG

731 BTypeScriptView Raw
1/// <reference types="node" />
2/**
3 * Class describing a received SSDP message.
4 */
5export declare class Message {
6 readonly remoteAddress: string;
7 private readonly headers;
8 constructor(remoteAddress: string, message: Buffer);
9 /**
10 * Gets the HTTP method.
11 */
12 get method(): string;
13 /**
14 * Gets the URL to the UPnP description of the root device.
15 */
16 get location(): string;
17 /**
18 * Gets the Unique Service Name (USN) header.
19 */
20 get usn(): string;
21 /**
22 * Gets the Notification Type (NT) header.
23 */
24 get nt(): string;
25 /**
26 * Gets the Notification Sub Type (NTS).
27 */
28 get nts(): string;
29 private parseHeaders;
30 private getHeaderValue;
31}