Back to product page

Headers property


Returns reference to request headers.

Type

WebHeaders object

Syntax

  • C#
  • VB.NET
WebHeaders Headers {get; };

ReadOnly Property Headers As WebHeaders

Remarks

This property returns reference to collection of all headers sent by the client in the request. You will usually find here Host header - list of Accepted languages, list of Accepted encodings etc.. To access specific header from the collection, you can use code like this:
 
Debug.Print(Args.User.Request.Headers("Host").Value)
 

or, for example
 
Dim h As WeOnlyDo.Server.WebHeader
   For Each h In Args.Request.Headers
       Debug.Print(h.Name + ": " + h.Value)
   Next
 


Platforms

Windows