Skip to content

Commit

Permalink
Add example of posting plain/text
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Apr 6, 2024
1 parent 0526657 commit 6f4e24f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/Sending_Requests.fsx
Expand Up @@ -92,6 +92,23 @@ http {
*)


(**
## Plain text
*)
http {
POST "https://mysite"
body
// Sets Content-Type: plain/text header
text """
The last train is nearly due
The underground is closing soon
And in the dark deserted station
Restless in anticipation
A man waits in the shadows
"""
}
|> Request.send

(**
## Request Cancellation
Expand Down

0 comments on commit 6f4e24f

Please sign in to comment.