RestClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A simple REST client that sends HTTP requests and receives responses.
public class RestClient
type RestClient = class
Public Class RestClient
- Inheritance
-
RestClient
Constructors
| Name | Description |
|---|---|
| RestClient() |
Initializes a new instance of the RestClient class. |
| RestClient(PipelinePolicy) |
Initializes a new instance of the RestClient class with the specified authentication policy. |
Properties
| Name | Description |
|---|---|
| Shared |
A shared instance of the RestClient class. |
Methods
| Name | Description |
|---|---|
| Create(String, Uri) |
Creates a new PipelineMessage with the specified method and URI. |
| Get(String, RequestOptions) |
Sends a GET request to the specified URI. |
| Patch(String, BinaryContent, RequestOptions) |
Sends a DELETE request to the specified URI. |
| Post(String, BinaryContent, RequestOptions) |
Sends a POST request to the specified URI. |
| Put(String, BinaryContent, RequestOptions) |
Sends a PUT request to the specified URI. |
| Send(PipelineMessage, RequestOptions) |
Sends a request with the specified message. |