Skip to content

HttpRequestHeaders

Summary

The class that represents an HTTP request headers collection.

Signature

1
public sealed class HttpRequestHeaders

Namespace

cAlgo.API

Methods

Add

Summary

Adds a new header.

Signature

1
public void Add(string name, string value)

Parameters

Name Type Description
name string The Header name
value string The Header value

Return Value

void

Update

Summary

Updates an existing header.

Signature

1
public void Update(string name, string value)

Parameters

Name Type Description
name string The Header name
value string The new Header value

Return Value

void

Remove

Summary

Removes an existing header.

Signature

1
public bool Remove(string name)

Parameters

Name Type Description
name string Header name

Return Value

bool

GetValue

Summary

Returns an existing header value.

Signature

1
public string GetValue(string name)

Parameters

Name Type Description
name string The Header name

Return Value

string

GetEnumerator

Summary

Returns an enumerator that iterates through HttpRequestHeaders.

Signature

1
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()

Return Value

IEnumerator>