NBomber.Http icon indicating copy to clipboard operation
NBomber.Http copied to clipboard

NBomber plugin for defining HTTP scenarios.

NBomber.Http

build NuGet

NBomber plugin for defining HTTP scenarios.

Documentation is located here

using var httpClient = new HttpClient();

var scenario = Scenario.Create("http_scenario", async context =>
{
    var request =
        Http.CreateRequest("GET", "https://nbomber.com")
            .WithHeader("Content-Type", "application/json");
         // .WithBody(new StringContent("{ some JSON }", Encoding.UTF8, "application/json"));

    var response = await Http.Send(httpClient, request);

    return response;
});