Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 855 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 855 Bytes

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