Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
class MsgHdrsImpl
implements MsgHdrs
import { MsgHdrsImpl } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

Constructors

new
MsgHdrsImpl(code?, description?)

Properties

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

Methods

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[]

Static Methods

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