Example #1
0
 public void ParseParamsStream()
 {
     Params = new Dictionary <string, string>();
     ParamsStream.Position = 0;
     while (!ParamsStream.Eof())
     {
         var Key   = new byte[FastcgiPacketReader.ReadVariableInt(ParamsStream)];
         var Value = new byte[FastcgiPacketReader.ReadVariableInt(ParamsStream)];
         ParamsStream.Read(Key, 0, Key.Length);
         ParamsStream.Read(Value, 0, Value.Length);
         Params[Encoding.ASCII.GetString(Key)] = Encoding.ASCII.GetString(Value);
     }
     ParamsStream = new FascgiRequestInputStream();
 }
Example #2
0
 public FastcgiHandler(IFastcgiPipe FastcgiPipe, bool Debug = false)
 {
     this.Writer = new FastcgiPacketWriter(FastcgiPipe, Debug);
     this.Reader = new FastcgiPacketReader(FastcgiPipe, Debug);
     this.Reader.HandlePacket += Reader_HandlePacket;
 }
Example #3
0
		public FastcgiHandler(IFastcgiPipe FastcgiPipe, bool Debug = false)
		{
			this.Writer = new FastcgiPacketWriter(FastcgiPipe, Debug);
			this.Reader = new FastcgiPacketReader(FastcgiPipe, Debug);
			this.Reader.HandlePacket += Reader_HandlePacket;
		}