Conjecture.Http 0.29.0

dotnet add package Conjecture.Http --version 0.29.0
                    
NuGet\Install-Package Conjecture.Http -Version 0.29.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Conjecture.Http" Version="0.29.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Conjecture.Http" Version="0.29.0" />
                    
Directory.Packages.props
<PackageReference Include="Conjecture.Http" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Conjecture.Http --version 0.29.0
                    
#r "nuget: Conjecture.Http, 0.29.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Conjecture.Http@0.29.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Conjecture.Http&version=0.29.0
                    
Install as a Cake Addin
#tool nuget:?package=Conjecture.Http&version=0.29.0
                    
Install as a Cake Tool

Conjecture.Http

HTTP interaction primitives for Conjecture. Defines HttpInteraction (a serializable description of an HTTP call) and IHttpTarget (resolves an HttpClient per named resource) so you can write transport-agnostic property tests over HTTP services.

Install

dotnet add package Conjecture.Core
dotnet add package Conjecture.Http

Usage

using Conjecture.Core;
using Conjecture.Http;
using Conjecture.Xunit;

public class ApiTests
{
    [Property]
    public async Task NeverReturns5xx(HttpInteraction request)
    {
        Strategy<HttpInteraction> strategy = Strategy.Http("api")
            .Get("/items/{id}")
            .Build();

        await strategy.Sample().Response(target).AssertNot5xx();
    }
}

HostHttpTarget wraps an IHost (e.g. a WebApplicationFactory) so requests dispatch in-process. Compose HttpInteraction strategies with Conjecture.AspNetCore to derive valid and malformed requests directly from minimal-API and MVC route metadata.

Types

Type Role
HttpInteraction Readonly record: method, path, headers, body, named resource.
IHttpTarget Resolves an HttpClient for a named resource.
HostHttpTarget IHttpTarget over an IHost / WebApplicationFactory.
HttpStrategyBuilder Fluent builder for HttpInteraction strategies — Strategy.Http(resource).Get/Post/Put/Delete/Patch(...).Build().
HttpInvariantExtensions AssertNot5xx, Assert4xx, AssertProblemDetailsShape, Response(target).
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Conjecture.Http:

Package Downloads
Conjecture.AspNetCore

Property-based testing for ASP.NET Core minimal APIs and MVC controllers via metadata-driven request synthesis.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.29.0 127 5/9/2026
0.28.0 132 5/9/2026
0.27.1 209 4/28/2026
0.26.0 126 4/27/2026
0.25.0 122 4/27/2026
0.24.0 120 4/26/2026
0.23.0 122 4/26/2026
0.22.0 95 4/26/2026
0.21.0 98 4/26/2026
0.20.0 103 4/25/2026
0.19.0 101 4/25/2026