A hackable HTTP client for F# and .NET that combines convenience with flexibility for both interactive exploration and production use.
FsHttp is a hackable HTTP client library for F# and .NET that provides a legible, expressive syntax for making HTTP requests. It solves the problem of verbose or inflexible HTTP clients by offering a convenient DSL for common tasks while still exposing full HTTP control for advanced scenarios. It can be used both as an interactive playground for HTTP experimentation and as a production-ready client in applications.
F# and .NET developers who need a flexible, readable HTTP client for API interactions, especially those who value functional programming patterns and want a tool that doubles as an interactive HTTP playground.
Developers choose FsHttp because it uniquely combines the convenience of a high-level DSL with the flexibility of low-level HTTP access, supports both F# and C# idiomatically, and can replace external tools like Postman with a programmable, scriptable alternative.
HTTP library for F#
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses a computation expression builder (`http { ... }`) to create legible and concise HTTP request definitions, making code more readable and maintainable for F# developers.
Can replace tools like Postman or .http files with a programmable environment, ideal for scripting and testing in F# Interactive sessions.
Provides fluent syntax in C# and functional style in F#, ensuring seamless integration in mixed-language .NET projects without sacrificing language familiarity.
Supports JSON serialization directly within requests, including anonymous types, simplifying API interactions without extra boilerplate code.
Emits console logs by default, which can clutter output in production applications unless explicitly disabled with `FsHttp.Fsi.disableDebugLogs()`, a recurring issue noted in the README.
While it supports C#, the library's design relies heavily on F# computation expressions, which may alienate developers unfamiliar with functional programming patterns.
The README highlights migration documentation, indicating that updates may introduce breaking changes, requiring careful version management for long-term projects.
FsHttp is an open-source alternative to the following products: