NBomber plugin to defining HTTP scenarios


Keywords
fsharp, integration-testing, load-testing, performance-testing
License
Apache-2.0
Install
Install-Package NBomber.Http -Version 5.1.0

Documentation

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;
});