public NginxBlackRequest(IntPtr nginx_request, NginxMonoRequestInfo info)
    {
        this.info = info;

        /*if (headers == null)
         *      Console.Error.WriteLine ("headers IS NULL");
         * Console.Error.WriteLine ("headers count {0}", headers.Length);
         * for (int i = 0; i < info.headers_count; i++) {
         *      Console.Error.WriteLine ("Header Returned Key= '{0}',Value='{1}'", headers[i].Key, headers[i].Value);
         * }
         * Console.Error.WriteLine ("Finished Iterating headers");
         *      foreach(var h in headers)
         * {
         *      Console.Error.WriteLine("H={0},V={1}",h.Key,h.Value);
         * }*/
        this.headers = MainApp.GetRequestHeaders(nginx_request);

        /*foreach (var h in this.headers) {
         *      Console.Error.WriteLine ("header Key= '{0}',Value='{1}'", h.Key, h.Value);
         * }*/

        ResponseBodyMemory = new MemoryStream();
        this.nginx_request = nginx_request;
        //Console.Error.WriteLine ("Content Type={0}", this.ContentType);

        this.Initialize();
    }
示例#2
0
 public override RequestHeader[] GetHeaders(long nginx_request)
 {
     return(MainApp.GetRequestHeaders(nginx_request.ToPointer()));
 }