getHeader

getHeader(type: Integer;
          key:  String): String;

The getHeader method of the JadeHTTPConnection class retrieves an HTTP header.

The type parameter, which specifies the type of header to retrieve, can be one of the JadeHTTPConnection class constants listed in the following table.

Value Description
HeaderType_Client Client header
HeaderType_Server Server header

The key parameter specifies the header key; for example, Accept, Content-Type.

The getHeader method returns the value of the key if a header with the specified type and key exists; otherwise it returns null.