Migrations
To v9 (Breaking Changes)
http...
Builders: There is now only a singlehttp
builder, that is equivalent to the formerhttpLazy
builder. To achieve the behaviour of the removed builders, please use:httpLazy
->http { ... }
http
->http { ... } |> Request.send
httpAsync
->http { ... } |> Request.sendAsync
httpLazyAsync
->http { ... } |> Request.toAsync
httpMessage
->http { ... } |> Request.toMessage
- see also: https://github.com/fsprojects/FsHttp/blob/master/src/Tests/BuildersAndSignatures.fs
- Renamed type
LazyHttpBuilder
->HttpBuilder
- Renamed
Request.buildAsync
->Request.toAsync
- Removed
send
andsendAsync
builder methods - Changed request and response printing (mostly used in FSI)
- Printing related custom operations change in names and behaviour
Dsl
/DslCE
namespaces: There is no need for distinction of both namespaces. It is now sufficient toopen FsHttp
only.- The
HttpBuilder<'context>
is replaced byIBuilder<'self>
, so that the CE methods work directly on theHeaderContext
,BodyContext
, andMultipartContext
directly. This simplifies things like mixing Dsl and DslCE, pre-configuring and chaining requests. - The global configuration is now in the
FsHttp.GlobalConfig
module. TheConfig
module is only for functions on request contexts. - QueryParams is
(string * obj) list
now - Use of System.Text.Json as a standard JSON library and created separate Newtonsoft and FSharp.Data JSON packages.
- Dropped support for .Net Standard 2.0
- Smaller breaking changes