Skip to content

Commit

Permalink
Trying to fix a dependency warning (Newtonsoft.Json)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussBaz committed Nov 28, 2021
1 parent ed348fb commit 87cda6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,20 @@ app.Get "/" <- fun serv ->
serv.EndResponse ()
```
#### Body Parts
The body parts services allow quick parsing and validation of different types of request bodies during the request handling.
```F#
// If you expect a form encoded body, use the following
serv.Body.Form
// If you expect a json encoded body, use this
serv.Body.Json
// In case you need to read a raw body as a stream
serv.Body.Raw
// or if you want to get a body pipe reader
serv.Body.RawPipe
```
##### Form
##### Json
#### Request Logging
Expand Down
2 changes: 1 addition & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ framework: net6.0

nuget FSharp.Core >= 6.0

nuget Newtonsoft.Json ~> 13.0
nuget Newtonsoft.Json >= 13.0.1 < 14

nuget Microsoft.AspNetCore.TestHost ~> 6.0

Expand Down
2 changes: 1 addition & 1 deletion templates/All/Minimal/Minimal.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="RussBaz.WebFrame" Version="0.0.12" />
<PackageReference Include="RussBaz.WebFrame" Version="0.0.13" />
</ItemGroup>

</Project>

0 comments on commit 87cda6f

Please sign in to comment.