Table of Contents

Interface IHttpHeaders

Namespace
RestSharp.Portable
Assembly
RestSharp.Portable.Core.dll
public interface IHttpHeaders : IEnumerable<KeyValuePair<string, IEnumerable<string>>>, IEnumerable
Extension Methods

Methods

Add(string, IEnumerable<string>)

void Add(string name, IEnumerable<string> values)

Parameters

name string
values IEnumerable<string>

Add(string, string)

void Add(string name, string value)

Parameters

name string
value string

Clear()

void Clear()

Contains(string)

bool Contains(string name)

Parameters

name string

Returns

bool

GetValues(string)

IEnumerable<string> GetValues(string name)

Parameters

name string

Returns

IEnumerable<string>

Remove(string)

bool Remove(string name)

Parameters

name string

Returns

bool

TryAddWithoutValidation(string, IEnumerable<string>)

bool TryAddWithoutValidation(string name, IEnumerable<string> values)

Parameters

name string
values IEnumerable<string>

Returns

bool

TryAddWithoutValidation(string, string)

bool TryAddWithoutValidation(string name, string value)

Parameters

name string
value string

Returns

bool

TryGetValues(string, out IEnumerable<string>)

bool TryGetValues(string name, out IEnumerable<string> values)

Parameters

name string
values IEnumerable<string>

Returns

bool