Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rsocket/mod.ts>CompositeMetadata

🦕RSocket Deno module
Latest
class CompositeMetadata
import { CompositeMetadata } from "https://deno.land/x/rsocket@0.3.0/mod.ts";

Constructors

new
CompositeMetadata(buffer: ByteBuffer)

Properties

_buffer: ByteBuffer
_map: Map<string, MetadataEntry> | undefined

Methods

addExplicitMimeType(mimeType: string, content: Uint8Array)
addWellKnownMimeType(typeId: number, content: Uint8Array)
entriesIterator(buffer: ByteBuffer): IterableIterator<MetadataEntry>
findEntry(type: string): MetadataEntry | undefined
toUint8Array(): Uint8Array

Static Methods

fromEntries(...entries: MetadataEntry[])
fromU8Array(u8Array: Uint8Array)