Table of Contents

Method AddDefaultHeader

Namespace
DSharpPlus.Net.WebSocket
Assembly
DSharpPlus.dll

AddDefaultHeader(string, string)

Adds a header to the default header collection.

public bool AddDefaultHeader(string name, string value)

Parameters

name string

Name of the header to add.

value string

Value of the header to add.

Returns

bool

Whether the operation succeeded.