FsHttp 6.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FsHttp --version 6.0.0                
NuGet\Install-Package FsHttp -Version 6.0.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="FsHttp" Version="6.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FsHttp --version 6.0.0                
#r "nuget: FsHttp, 6.0.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.
// Install FsHttp as a Cake Addin
#addin nuget:?package=FsHttp&version=6.0.0

// Install FsHttp as a Cake Tool
#tool nuget:?package=FsHttp&version=6.0.0                

FsHttp

FsHttp is HTTP client library written in F#. It aims for describing and executing HTTP requests in a convenient ways that can be used in production and interactive environments.

NuGet Badge build status

NOTE: The NuGet package SchlenkR.FsHttp is deprecated. Please use the package FsHttp for releases >= 6.x

Documentation

Please visit the FsHttp Documentation site.

You can also have a the Integration Tests that show various use cases.

A Simple Example


#r "nuget: FsHttp"

open FsHttp
open FsHttp.DslCE

http {
    POST "https://reqres.in/api/users"
    CacheControl "no-cache"
    body
    json """
    {
        "name": "morpheus",
        "job": "leader"
    }
    """
}

Building

You need to have the latest .Net 5 SDK installed.

There is a F# script that can be used to perform several build tasks from command line. It can be executed in this way:

dotnet fsi .\build.fsx [task]

Common tasks are:

  • build
  • test
  • docu
  • publish

Building Readme.md

The Readme.md and the content in ./docs is auto-generated from the files in ./src/Docu. In order to build them, run the command dotnet fsi .\build.fsx docu.

Credits

Parts of the code is taken from the HTTP utilities of FSharp.Data.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on FsHttp:

Package Downloads
Functional.SplinterBots.API

Package Description

FsHttp.FSharpData

FSharp.Data (JSON) integration package for FsHttp

FsHttp.NewtonsoftJson

JSON.Net (Newtonsoft.Json) integration package for FsHttp

Swate.Api

Dotnet library for easy access to Swate API.

AVPRIndex

Type system and utils for the indexing backend of avpr.nfdi4plants.org

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
15.0.1 2,127 12/3/2024
14.5.2 121 12/3/2024
14.5.1 105,960 8/9/2024
14.5.0 157,061 3/5/2024
14.4.2 312 3/5/2024
14.4.1 73,146 2/5/2024
14.4.0 79,186 1/7/2024
14.2.0 837 1/5/2024
14.1.0 792 1/3/2024
14.0.0 633 1/2/2024
13.3.0 13,020 12/28/2023
13.2.0 617 12/28/2023
12.2.0-preview01 654 12/24/2023
12.1.0 2,870 11/27/2023
12.0.0 51,688 10/31/2023
11.0.0 49,726 8/5/2023
11.0.0-preview01 1,284 3/25/2023
10.0.0 196,477 11/25/2022
10.0.0-preview3 905 11/23/2022
10.0.0-preview2 1,121 11/12/2022
10.0.0-preview1 935 11/12/2022
9.1.2 32,354 6/5/2022
9.1.1 3,584 4/24/2022
9.1.0 1,740 4/19/2022
9.0.6 1,782 4/19/2022
9.0.5 1,787 4/14/2022
9.0.4 1,539 4/8/2022
9.0.3 1,422 4/8/2022
9.0.2 3,873 4/6/2022
9.0.1 1,342 4/5/2022
9.0.0 13,858 4/5/2022
8.0.1 8,426 3/6/2022
8.0.0 1,189 3/2/2022
7.0.0 41,975 12/13/2021
6.0.1 2,371 11/23/2021
6.0.0 1,019 11/22/2021
0.9.0 1,951 7/14/2019