Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MsgHdrsImpl

import { MsgHdrsImpl } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class MsgHdrsImpl implements MsgHdrs {
constructor(code?, description?);
_code: number;
_description: string;
get hasError();
headers: Map<string, string[]>;
get status(): string;
get code(): number;
get description(): string;
 
append(
k: string,
v: string,
match?,
): void;
delete(k: string, match?): void;
encode(): Uint8Array;
equals(mh: MsgHdrsImpl): boolean;
findKeys(k: string, match?): string[];
get(k: string, match?): string;
has(k: string, match?): boolean;
keys(): string[];
last(k: string, match?): string;
set(
k: string,
v: string,
match?,
): void;
size(): number;
toRecord(): Record<string, string[]>;
toString(): string;
values(k: string, match?): string[];
[Symbol.iterator]();
 
static decode(a: Uint8Array): MsgHdrsImpl;
static fromRecord(r: Record<string, string[]>): MsgHdrs;
static validHeaderValue(k: string): string;
}

§Implements

§Constructors

§
new MsgHdrsImpl(code?, description?)
[src]

§Properties

§
_code: number
[src]
§
_description: string
[src]
§
hasError readonly
[src]
§
headers: Map<string, string[]>
[src]
§
status: string readonly
[src]
§
code: number readonly
[src]
§
description: string readonly
[src]

§Methods

§
append(k: string, v: string, match?): void
[src]
§
delete(k: string, match?): void
[src]
§
encode(): Uint8Array
[src]
§
equals(mh: MsgHdrsImpl): boolean
[src]
§
findKeys(k: string, match?): string[]
[src]
§
get(k: string, match?): string
[src]
§
has(k: string, match?): boolean
[src]
§
keys(): string[]
[src]
§
last(k: string, match?): string
[src]
§
set(k: string, v: string, match?): void
[src]
§
size(): number
[src]
§
toRecord(): Record<string, string[]>
[src]
§
toString(): string
[src]
§
values(k: string, match?): string[]
[src]
§
[Symbol.iterator]()
[src]

§Static Methods

§
decode(a: Uint8Array): MsgHdrsImpl
[src]
§
fromRecord(r: Record<string, string[]>): MsgHdrs
[src]
§
validHeaderValue(k: string): string
[src]