Skip to content

Commit

Permalink
Merge pull request #192 from nojaf/docs/plain-text-request
Browse files Browse the repository at this point in the history
  • Loading branch information
SchlenkR committed Apr 6, 2024
2 parents 0526657 + 6f4e24f commit c531074
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/Sending_Requests.fsx
Original file line number Diff line number Diff line change
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 c531074

Please sign in to comment.