HttpClientExtensions Class
Extension methods for HttpClient that return Result<TSuccess, HttpError<TError>> instead of throwing exceptions.
Namespace
RestClient.Net
Methods
| Method | Description |
|---|---|
| GetAsync<TSuccess, TError> | Make a type-safe GET request |
| PostAsync<TRequest, TSuccess, TError> | Make a type-safe POST request with body |
| PutAsync<TRequest, TSuccess, TError> | Make a type-safe PUT request for full replacement |
| DeleteAsync<TSuccess, TError> | Make a type-safe DELETE request |
| PatchAsync<TRequest, TSuccess, TError> | Make a type-safe PATCH request for partial updates |
See Also
- Result<TSuccess, TError> - The discriminated union return type
- HttpError<TError> - HTTP-specific error wrapper
- Serialization - Custom serialization and deserialization