Refactor GET and POST requests
This commit is contained in:
parent
4ff2099e99
commit
5b22260f28
2 changed files with 27 additions and 56 deletions
5
test.bqn
5
test.bqn
|
@ -1,5 +1,10 @@
|
|||
⟨Get,Post⟩←•Import"curl.bqn"
|
||||
|
||||
r←Get"http://localhost:8080/get"
|
||||
r.code
|
||||
r.headers
|
||||
r.content
|
||||
|
||||
r←⟨"Content-Type: application/json"⟩Post"http://localhost:8080/post"‿"{""key"": ""value""}"
|
||||
r.code
|
||||
r.headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue