RestClient¶
Defines a connection with a REST service.
Capabilities¶
Client State¶
- RestClient.IsAuthenticated: Gets a value indicating whether the client is currently authenticated.
- RestClient.Url: Gets or sets the target URL of the client.
Default Parameters¶
- RestClient.AddDefaultHeader: Adds a default header to all requests made by this client.
- RestClient.AddDefaultParameter: Adds a default parameter to all requests made by this client.
- RestClient.AddDefaultUrlParameter: Adds a default URL parameter to all requests made by this client.
Authentication¶
- RestClient.Authenticate: Authenticates the client using the specified service.
- RestClient.AuthenticateBasic: Authenticates the client using HTTP Basic authentication.
- RestClient.AuthenticateJwt: Authenticates the client using a JWT (JSON Web Token).
- RestClient.AuthenticateNtlm: Authenticates the client using NTLM authentication.
- RestClient.EnsureAuthenticated: Authenticates the client with the specified service and scope if not already authenticated.
Request Creation¶
- RestClient.Request: Creates a new RestRequest instance.