Helper function to get a header from the request headers


Namespace: Benchmarx.Munja
Assembly: Munja (in Munja.dll)

Syntax

Visual Basic (Declaration)
Public Function GetHeader( _ 
   ByVal fieldName As String _ 
) As String
C#
public string GetHeader(
   string fieldName
)
C++
public:
 String GetHeader(
   String fieldName
) sealed 
J#
public string GetHeader(
   string fieldName
)
JScript
public  function GetHeader(
   fieldName : String
) : String

Parameters

fieldName
Name of the header to retrieve (ie. "Content-Type")

Return Value

The value of the header or String.Empty if the header is not present

See Also