Skip to content

Commit d9d55ae

Browse files
committed
stuff
1 parent 22a067c commit d9d55ae

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

Diff for: Directory.Build.props

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<Version>14.1.0</Version>
4+
<Version>14.2.0</Version>
55

66
<Authors>Ronald Schlenker</Authors>
77
<Copyright>Copyright 2024 Ronald Schlenker</Copyright>
@@ -16,6 +16,9 @@
1616
<FsDocsReleaseNotesLink>https://www.nuget.org/packages/FsHttp#release-body-tab</FsDocsReleaseNotesLink>
1717

1818
<PackageReleaseNotes>
19+
v14.2.0
20+
- (Breaking change) Separated Config and PrintHint (...and many more things in these domains)
21+
1922
v14.1.0
2023
- (Breaking change) Renamed `Extensions.To...Enumerable` to `Extensions.To...Seq`
2124
- Added `toJsonList...` overloads

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ An example in C#:
4444

4545
using FsHttp;
4646

47-
await "https://reqres.in/api/users"
48-
.Post()
47+
await Http
48+
.Post("https://reqres.in/api/users")
4949
.CacheControl("no-cache")
5050
.Body()
5151
.JsonSerialize(new

Diff for: src/FsHttp/Extensions.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ open FsHttp
1111
// ---------
1212

1313
[<Extension>]
14-
type HttpExtensions =
14+
type Http =
1515

1616
[<Extension>]
1717
static member Method(url, method) = Http.method method url

Diff for: src/Test.CSharp/BasicTests.cs

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System;
22
using System.Threading.Tasks;
3+
34
using FsHttp;
45
using FsHttp.Tests;
6+
57
using NUnit.Framework;
68

79
namespace Test.CSharp
@@ -48,7 +50,7 @@ public async Task PostsJsonObject()
4850
}
4951

5052
[Test]
51-
public void ConfigurationViaTransformer()
53+
public void FluentConfig()
5254
{
5355
const string Content = "Hello World";
5456

@@ -63,5 +65,13 @@ public void ConfigurationViaTransformer()
6365
.SendAsync())
6466
.ToTextAsync());
6567
}
68+
69+
[Test, Ignore("Compiler-test only")]
70+
public void FluentPrintHint()
71+
{
72+
var request =
73+
Http.Get("http://...")
74+
.Print().HeaderOnly();
75+
}
6676
}
6777
}

0 commit comments

Comments
 (0)