D
D
Denis Bredun2020-08-06 23:26:04
ASP.NET
Denis Bredun, 2020-08-06 23:26:04

What does the line in Startup app.UseRouting() do?

Now I'm studying ASP.NET Core and reading about the Startup class on the meta. So I came across this line:

The call to app.UseRouting() adds some routing capabilities so that the application can match requests to specific routes.

Here is a list of questions:
1. What is routing?
2. Why is it needed?
3. Does it make a huge difference to the web application?
4. What are these "some possibilities"?
5. What do these "some opportunities" do, what are they responsible for?
6. What does the "match requests to specific routes" part of the line mean? What does it mean in this context to "correlate", "certain" and "routes"?
7. What are routes? What role do they play and why are they needed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2020-08-07
@yarosroman

Denis, buy yourself a book already. Questions are questions, but you have questions for a whole chapter of the book. There are no courses for you here, no one is going to teach. It's a pity for money for a book, Google for help, a bunch of articles and documentation.
Z.Y. Of course, I'm oh ... e, but why did you have to dig deep into the depths when the field around was unplowed.

V
Vladimir Korotenko, 2020-08-07
@firedragon

Routing is how an address is converted to a method, and there's really a lot to it.
Keep the utility
https://edi.wang/post/2020/4/29/my-aspnet-core-rou...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question