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; }
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; }
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); } }
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; }