Inheritance: IHttpHandler
コード例 #1
0
 public HttpResourceHandler(string method, string path, IServerConfiguration serverConfiguration)
 {
     _method = method;
     _path = path;
     _pipeline = new HttpHandler(serverConfiguration);
     _comparison = StringComparison.CurrentCulture;
     ServerConfiguration = serverConfiguration;
     AuthenticationScheme = AuthenticationSchemes.Anonymous;
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: featurist/SelfishHttp
 public Server(int port)
 {
     _uriPrefix = String.Format("http://localhost:{0}/", port);
     _baseUri = string.Format("http://localhost:{0}/", port);
     BodyParser = BodyParsers.DefaultBodyParser();
     BodyWriter = BodyWriters.DefaultBodyWriter();
     ParamsParser = new UrlParamsParser();
     _anyRequestHandler = new HttpHandler(this);
     Start();
 }