- Building RESTful Web Services with .NET Core
- Gaurav Aroraa Tadit Dash
- 110字
- 2021-06-25 21:23:10
Request and response
Now that we have had a quick look at the demo ValuesController, let's examine exactly how the client sends the request and how it receives the response.
A REST request generally consists of the following:
- HTTP verb: This denotes what kind of operation the requests want to perform on the server.
- Header: This element of the REST request allows the client to pass more information about the request.
- URL: The actual path to the resource that the REST request wants to operate on.
- Body: The body can contain extra data related to a resource to identify or update it. This is optional though.