File tree 4 files changed +18
-5
lines changed
4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
2
3
3
<PropertyGroup >
4
- <Version >14.1 .0</Version >
4
+ <Version >14.2 .0</Version >
5
5
6
6
<Authors >Ronald Schlenker</Authors >
7
7
<Copyright >Copyright 2024 Ronald Schlenker</Copyright >
16
16
<FsDocsReleaseNotesLink >https://www.nuget.org/packages/FsHttp#release-body-tab</FsDocsReleaseNotesLink >
17
17
18
18
<PackageReleaseNotes >
19
+ v14.2.0
20
+ - (Breaking change) Separated Config and PrintHint (...and many more things in these domains)
21
+
19
22
v14.1.0
20
23
- (Breaking change) Renamed `Extensions.To...Enumerable` to `Extensions.To...Seq`
21
24
- Added `toJsonList...` overloads
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ An example in C#:
44
44
45
45
using FsHttp ;
46
46
47
- await " https://reqres.in/api/users "
48
- .Post ()
47
+ await Http
48
+ .Post (" https://reqres.in/api/users " )
49
49
.CacheControl (" no-cache" )
50
50
.Body ()
51
51
.JsonSerialize (new
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ open FsHttp
11
11
// ---------
12
12
13
13
[<Extension>]
14
- type HttpExtensions =
14
+ type Http =
15
15
16
16
[<Extension>]
17
17
static member Method ( url , method ) = Http.method method url
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Threading . Tasks ;
3
+
3
4
using FsHttp ;
4
5
using FsHttp . Tests ;
6
+
5
7
using NUnit . Framework ;
6
8
7
9
namespace Test . CSharp
@@ -48,7 +50,7 @@ public async Task PostsJsonObject()
48
50
}
49
51
50
52
[ Test ]
51
- public void ConfigurationViaTransformer ( )
53
+ public void FluentConfig ( )
52
54
{
53
55
const string Content = "Hello World" ;
54
56
@@ -63,5 +65,13 @@ public void ConfigurationViaTransformer()
63
65
. SendAsync ( ) )
64
66
. ToTextAsync ( ) ) ;
65
67
}
68
+
69
+ [ Test , Ignore ( "Compiler-test only" ) ]
70
+ public void FluentPrintHint ( )
71
+ {
72
+ var request =
73
+ Http . Get ( "http://..." )
74
+ . Print ( ) . HeaderOnly ( ) ;
75
+ }
66
76
}
67
77
}
You can’t perform that action at this time.
0 commit comments