Esempio n. 1
0
 public ThreadArgs(RequestInfo request, HttpSocketContext context, ManualResetEvent resetEvent, HttpAuth.AuthorizeOrError auth, RouteHandler route, RouteMatch match)
 {
     this.Request    = request;;
     this.Context    = context;
     this.ResetEvent = resetEvent;
     this.Auth       = auth;
     this.Route      = route;
     this.Match      = match;
 }
Esempio n. 2
0
 public ThreadArgs(Socket socket, HttpSocketContext context, ManualResetEventSlim resetEvent, HttpAuth.AuthorizeOrError auth, RouteHandler route, RouteMatch match)
 {
     this.Socket     = socket;
     this.Context    = context;
     this.ResetEvent = resetEvent;
     this.Auth       = auth;
     this.Route      = route;
     this.Match      = match;
 }
Esempio n. 3
0
 private void CheckAuth(Socket socket, HttpAuth.AuthorizeOrError auth, HttpSocketContext ctx)
 {
     if (auth.SendAuthenticate)
     {
         ctx.AddHeader("WWW-Authenticate", MissingBasicAuth);
         ctx.ReturnError(socket, (int)auth.ResponseCode, auth.Error, true);
     }
     else
     {
         ctx.ReturnError(socket, (int)auth.ResponseCode, auth.Error, true);
     }
 }
Esempio n. 4
0
 public ThreadArgs(RequestInfo request, HttpSocketContext context, ManualResetEvent resetEvent, HttpAuth.AuthorizeOrError auth, RouteHandler route, RouteMatch match)
 {
     this.Request = request; ;
     this.Context = context;
     this.ResetEvent = resetEvent;
     this.Auth = auth;
     this.Route = route;
     this.Match = match;
 }