Commit Graph

930 Commits

Author SHA1 Message Date
Richard Feldman
763f7eafcd
Use rustls in cli-platform example 2022-07-25 13:05:01 -04:00
Richard Feldman
ed69a73786
Update glue tests 2022-07-24 11:57:01 -04:00
Richard Feldman
988d974870
Merge pull request #3620 from rtfeldman/http
Http improvements
2022-07-23 22:47:52 -04:00
Brian Carroll
49aef87b4a
Get rid of options that don't do anything 2022-07-23 09:11:30 +01:00
Brian Carroll
e5a2bb86b6
Handle response headers 2022-07-23 09:04:47 +01:00
Brian Carroll
b5edd03554
http: configure method, headers, etc. 2022-07-23 08:53:52 +01:00
Brian Carroll
f8771ebeb2
http: Switch to using reqwest crate for blocking http 2022-07-23 08:53:51 +01:00
Brian Carroll
a2b130a3c3
Use RocList::from_iter in sendRequest 2022-07-23 08:53:51 +01:00
Brendan Hansknecht
fae2ed7a2b
Merge remote-tracking branch 'origin/trunk' into gen-dev/quicksort 2022-07-22 23:28:46 -07:00
Richard Feldman
c0b0b5e12b
Merge remote-tracking branch 'origin/trunk' into path-fixes 2022-07-21 11:02:23 -04:00
Ayaz Hafiz
3c326769dd
Fix TUI example 2022-07-21 09:02:04 -04:00
Ayaz Hafiz
29b37a10df
Correctly use module name in linked functions 2022-07-21 09:02:04 -04:00
Brendan Hansknecht
8bc6131b3d
Merge branch 'trunk' into gen-dev/quicksort 2022-07-18 22:05:45 -07:00
Brian Carroll
5c94064c7b
Remove multiPartBody since it's not implemented properly 2022-07-18 23:21:24 +01:00
Brian Carroll
e1bf4a317a
Re-export Http types from the Http module itself 2022-07-18 23:16:54 +01:00
Brian Carroll
c35318dbfb
formatting 2022-07-18 21:04:12 +01:00
Brian Carroll
16af6fc297
Format Http.roc 2022-07-18 18:26:49 +01:00
Brian Carroll
269d416132
Merge branch 'trunk' of github.com:rtfeldman/roc into http-sync 2022-07-18 08:14:50 +01:00
Richard Feldman
0acab0eef3
Rename Result.after to Result.try 2022-07-17 17:25:50 -04:00
Brian Carroll
e7c26ae3b1
Regenerate glue code for cli-platform 2022-07-17 22:00:21 +01:00
Brian Carroll
bcfd50724f
More cleanup on Http platform & app 2022-07-17 22:00:21 +01:00
Brian Carroll
b0e8951e6b
Add some TODO comments 2022-07-17 22:00:20 +01:00
Brian Carroll
b84aac098e
Tidy up reading the Response body bytes 2022-07-17 22:00:20 +01:00
Brian Carroll
c50cbd265a
Wrap a record in Box before passing it to the host, to work around an ABI issue 2022-07-17 22:00:19 +01:00
Brian Carroll
3c506eb79c
Update bindgen glue code 2022-07-17 22:00:19 +01:00
Brian Carroll
a4e4dc84b1
Change Method type to a tag union 2022-07-17 22:00:19 +01:00
Brian Carroll
48aa248813
Use non-empty values for all fields in Request example, to debug host interface 2022-07-17 22:00:18 +01:00
Brian Carroll
f1e88e8af6
Use a tag instead of record for Http Header. Nicer in real usage. 2022-07-17 22:00:18 +01:00
Brian Carroll
2b8466d427
Revert "reproduce unhandled parse error"
This reverts commit 9e44dedfbb3aab98ab872afea76d0c8a0aac1679.
2022-07-17 22:00:18 +01:00
Brian Carroll
535c2b1c58
reproduce unhandled parse error 2022-07-17 22:00:17 +01:00
Brian Carroll
33d8e12d31
Http example is running! Not debugged yet. 2022-07-17 22:00:17 +01:00
Brian Carroll
9aba821e82
Workaround a compile error with defaultRequest by.. not using it! 2022-07-17 22:00:16 +01:00
Brian Carroll
1d99a63c59
Fix Roc compile errors in http-get.roc 2022-07-17 22:00:16 +01:00
Brian Carroll
13018497b7
Manual fixes for bindgen code 2022-07-17 22:00:16 +01:00
Brian Carroll
a0ac1ff981
For now, commit bindgen generated code so we can record edits needed 2022-07-17 22:00:15 +01:00
Brian Carroll
85bd8c54f2
Tidy up Http example 2022-07-17 22:00:15 +01:00
Brian Carroll
bee6f2f833
Http example passes roc check 2022-07-17 22:00:15 +01:00
Brian Carroll
4be19ed320
Import Stdout 2022-07-17 22:00:14 +01:00
Brian Carroll
0e13c875c4
rename http example app 2022-07-17 22:00:14 +01:00
Brian Carroll
1c9becc252
Fix missing import 2022-07-17 22:00:13 +01:00
Brian Carroll
5fe5a8e8d5
BUG REPRO: bad error message for missing Json import 2022-07-17 22:00:13 +01:00
Richard Feldman
18cf29f6e9
Revert "Reproduce confusing error message"
This reverts commit 6c62f72489de68f92493eeda9584c3879dedbd84.
2022-07-17 22:00:12 +01:00
Richard Feldman
e77b2bf8b1
Reproduce confusing error message
To reproduce:
`cargo run -- check examples/interactive/cli-platform/main.roc`
2022-07-17 22:00:12 +01:00
Richard Feldman
1ee5d79fcf
Fix an import in Effect.roc 2022-07-17 22:00:12 +01:00
Richard Feldman
13f5f27c9b
Remove 'pf' in pf.Effect in platform import 2022-07-17 22:00:11 +01:00
Brian Carroll
63a2e66364
BUG REPRO roc check hangs forever on Http.roc 2022-07-17 22:00:11 +01:00
Brian Carroll
f4019306cd
BUG REPRO: roc check hangs forever 2022-07-17 22:00:11 +01:00
Brian Carroll
807988aee6
Very simplistic http effect 2022-07-17 22:00:10 +01:00
Brian Carroll
26ff3ebc0e
make a sync version of Http 2022-07-17 22:00:10 +01:00
Brian Carroll
664ee1f0dc
WIP: sending the Request 2022-07-17 22:00:09 +01:00