//DirectoryInfo Storage //Should store in response ? static MultipartContent Read(HttpClient client, HttpMessage message) { string boundary = message.GetHeader(HttpHeaders.ContentType).Split(';').FirstOrDefault(s => s.StartsWith("boundary")).Substring(9); MultipartContent result = new MultipartContent(boundary, message.ContentEncoding); Receive: int received = client.HttpSocket.Receive(client.Buffer.Array); if (received > 0) { //search for boundary and recycle unused bytes //Empty line itself //if (received <= 2) return result; goto Receive; } return(result); }