code wiki / _hdl_build / nx_browse.nx
nx_browse.nx
buildroot/runtime/_hdl_build/nx_browse.nx
about
nx_browse.nx -- ONE-organ sovereign browse: read URL from _url.txt -> fetch the page (own DNS+TLS1.3+
HTTP) -> ALSO fetch its <link rel=stylesheet> sheets (load.php) and append them as <style> blocks so
the render applies the PAGE'S OWN CSS (@media-filtered) -> styled PNG. 100% sovereign, no curl/V8/gcc.
dependencies 9 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_get.nxnx_http_response_parse.nxnx_html_tokenizer.nxnx_dom_query.nxnx_html_entities.nxnx_render_html.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 14 | func _bp(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 15 | func _bn(fd: i64, v0: i64) -> i64 |
| 27 | func _browse_fetch(url: *u8, store: *TrustStore, cr: *u8, priv: *u8, lenbox: *i64) -> *u8 |
| 54 | func _scheme_host(url: *u8, ulen: i64, out: *u8) -> i64 called by 1: main |
| 70 | func _has_stylesheet(src: *u8, off: i64, len: i64) -> i64 called by 1: main |
| 83 | func main() -> i64 |