CurlDotNet

CurlDotNet.Core

CurlEngine Class

Core engine that processes and executes curl commands.

internal class CurlEngine : System.IDisposable

Inheritance System.Object 🡒 CurlEngine

Implements System.IDisposable

Remarks

This is the heart of CurlDotNet - translates curl commands to HTTP operations.

AI-Usage: This class handles the actual curl command execution.

Constructors
CurlEngine() Create a new CurlEngine with default HttpClient.
CurlEngine(HttpClient) Create a new CurlEngine with custom HttpClient.
Methods
Dispose()
ExecuteAsync(CurlOptions) Execute with parsed options.
ExecuteAsync(CurlOptions, CancellationToken) Execute with parsed options and cancellation.
ExecuteAsync(string) Execute a curl command string.
ExecuteAsync(string, CurlSettings) Execute a curl command with custom settings.
ExecuteAsync(string, CancellationToken) Execute a curl command with cancellation support.
ToFetchCode(string) Convert curl command to JavaScript fetch.
ToHttpClientCode(string) Convert curl command to HttpClient code.
ToPythonCode(string) Convert curl command to Python requests.
Validate(string) Validate a curl command without executing it.

About This Documentation

💎 Sponsored by IronSoftware - Enterprise .NET components trusted by thousands of developers worldwide.

✍️ Written by Jacob Mellor, CTO at IronSoftware.

📦 Get CurlDotNet: NuGet Package | GitHub Repository