HttpLinkedList Class
System.Net.HttpRepresents a linked list of HTTP-related objects. This class is internal and not intended for direct use by developers.
Summary
The HttpLinkedList class is an internal implementation detail within the .NET Framework's networking stack. It serves as a generic singly linked list specifically tailored for managing collections of HTTP-related data structures. Its primary purpose is to provide an efficient way to link and traverse items like HttpRequestMessage or HttpResponseMessage objects internally, enabling various HTTP processing pipelines and management tasks.
Remarks
While HttpLinkedList is not exposed for public consumption, understanding its role can provide insight into the internal workings of HttpClient and related classes. It likely plays a part in managing request/response headers, connection pooling, or other scenarios where ordered collections of HTTP elements are required. Developers typically interact with higher-level abstractions provided by the System.Net.Http namespace, and the use of HttpLinkedList is abstracted away.
Inheritance Hierarchy
System.ObjectSystem.Net.Http.HttpLinkedList
Fields
-
_head (
System.Net.Http.HttpLinkedList.HttpLinkedListNode_head)Internal head node of the linked list.
-
_tail (
System.Net.Http.HttpLinkedList.HttpLinkedListNode_tail)Internal tail node of the linked list.
Methods
-
AddLast (
System.Net.Http.HttpLinkedList.HttpLinkedListNodenode)Adds a node to the end of the linked list.
-
Remove (
System.Net.Http.HttpLinkedList.HttpLinkedListNodenode)Removes a specified node from the linked list.
-
GetEnumerator () :
System.Collections.Generic.IEnumerator<System.Net.Http.HttpLinkedList.HttpLinkedListNode>Returns an enumerator that iterates through the linked list.
Inner Classes
-
HttpLinkedListNodeRepresents a node within the
HttpLinkedList.