Add initial Http module to cli example

This commit is contained in:
Richard Feldman 2021-04-05 20:15:06 -04:00
parent 5e2c4bdda4
commit bd9e93f5ed
3 changed files with 22 additions and 0 deletions

View file

@ -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};