mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Add initial Http module to cli example
This commit is contained in:
parent
5e2c4bdda4
commit
bd9e93f5ed
3 changed files with 22 additions and 0 deletions
|
@ -45,6 +45,13 @@ pub fn roc_fx_putLine(line: RocStr) -> () {
|
|||
()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub fn roc_fx_httpGetStr(url: RocStr) -> RocStr {
|
||||
println!("TODO: read from this URL {:?}", url);
|
||||
|
||||
RocStr::from_slice("url!!!".as_bytes())
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub fn roc_fx_getLine() -> RocStr {
|
||||
use std::io::{self, BufRead};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue