Friday, July 8, 2022

Consume a REST service with HttpClient in .NET MAUI

HttpClient is a .NET class that an app can use to send HTTP requests and receive HTTP responses from a REST web service. The resources that the web service exposes are identified by a set of URIs. 




A REST web services enables a client to perform operations against data through a set of HTTP verbs.

Four most common are GET, POST, PUT, and DELETE.

  • The GET verb indicate that you want to retrieve a resource.
  • The POST verb indicate that you want to create a new resource.
  • The PUT verb indicate that you want to update a resource.
  • The DELETE verb indicate that you want to delete a resource.

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...