MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / MapEndpoints

Method MapEndpoints

dotnet/test/testing.webserver/AppServer.cs:124–142  ·  view source on GitHub ↗
(IEndpointRouteBuilder endpoints)

Source from the content-addressed store, hash-verified

122 }
123
124 private void MapEndpoints(IEndpointRouteBuilder endpoints)
125 {
126 endpoints.MapGet("/basicAuth", BasicAuthHandler.Handle);
127 endpoints.MapGet("/echo", (Delegate)EchoHandler.Handle);
128 endpoints.MapGet("/cookie", CookieHandler.Handle);
129 endpoints.MapGet("/encoding", EncodingHandler.Handle);
130 endpoints.MapGet("/sleep", (Delegate)SleepHandler.Handle);
131 endpoints.MapGet("/redirect", RedirectHandler.Handle);
132 endpoints.MapGet("/page/{pageNumber}", PageHandler.Handle);
133 endpoints.MapGet("/utf8/{*path}", (HttpContext context, string path) => Utf8Handler.Handle(context, path, _webContentRoot));
134 endpoints.MapPost("/createPage", (Delegate)((HttpContext context) => CreatePageHandler.Handle(context, _pages)));
135 endpoints.MapPost("/upload", (Delegate)UploadHandler.Handle);
136
137 endpoints.MapGet("/.well-known/web-identity", (HttpContext context) => FedCmHandler.HandleWebIdentity(context));
138 endpoints.MapGet("/fedcm/config.json", (HttpContext context) => FedCmHandler.HandleConfig(context));
139 endpoints.MapPost("/fedcm/id_assertion.json", (HttpContext context) => FedCmHandler.HandleIdAssertion(context));
140
141 endpoints.MapGet("/temp/{fileName}", (string fileName) => CreatePageHandler.ServePage(fileName, _pages));
142 }
143
144 private static X509Certificate2 GenerateSelfSignedCertificate()
145 {

Callers

nothing calls this directly

Calls 5

HandleWebIdentityMethod · 0.80
HandleConfigMethod · 0.80
HandleIdAssertionMethod · 0.80
ServePageMethod · 0.80
HandleMethod · 0.45

Tested by

no test coverage detected