Skip to content

Commit

Permalink
Simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 2, 2023
1 parent 9f9ae07 commit f10f8fb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ import gleeunit/should
pub fn main() {
// Prepare a HTTP request record
let request = request.new()
|> request.set_method(Get)
|> request.set_host("test-api.service.hmrc.gov.uk")
|> request.set_path("/hello/world")
|> request.prepend_header("accept", "application/vnd.hmrc.1.0+json")
let assert Ok(request) =
request.to("https://test-api.service.hmrc.gov.uk/hello/world")
// Send the HTTP request to the server
try resp = httpc.send(req)
Expand Down

0 comments on commit f10f8fb

Please sign in to comment.