private void ProcessRequestHeader(char[] data)
{
var content = new string(data);
var indexOf = content.IndexOf('\n');
var firstLine = content.Substring(0, indexOf);
// Parse the first line of the request: "GET /path/ HTTP/1.1"
var words = firstLine.Split(' ');
Method = words[0];
URL = words[1];
// Could look for any further headers in other lines of the request if required (e.g. User-Agent, Cookie)
}