declare class MessageMixin { protected headers: Record; protected protocal: string; protected content: Buffer; getProtocolVersion(): string; withProtocolVersion(protocal: string): this; getHeaders(): Record; hasHeader(name: string): boolean; getHeader(name: string): any; getHeaderLine(name: string): any; withHeader(name: string, value: string | string[]): this; withAddedHeader(name: string, value: string | string[]): this; withoutHeader(name: string): this; getBody(): Buffer; withBody(body: any): this; /** * 设置headers * @param headers * @returns */ protected setHeaders(headers: Record): this; } export = MessageMixin;