code wiki / (root) / nx_browser_page_demo_test.nx

nx_browser_page_demo_test.nx

buildroot/runtime/nx_browser_page_demo_test.nx

4857 B133 linesdepth 6pulls 17 transitivereach 0 importersview sourcekind gate/prooftopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_page_demo_test.nx -- the browser renders a REAL webpage. Fetches http://example.com/ with the bits-up stack (DNS + sockets + HTTP/1.1), then renders the HTML to readable text via nx_html_to_text (tag strip + entity decode + script/style removal). This is a sovereign text-mode browser -- Lynx/w3m class -- rendering a real page off the live internet, every byte NishiLang. PROOF (not a claim): the rendered text MUST contain the real page's own words ("Example Domain" + "illustrative examples"). The rendered text is also written to nishi-browser-proofs/rendered_example_com.txt so it can be read + diffed against the live page. expect_exit: 0 license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_connect.nx nx_dns_resolve_a_record.nx nx_https_url_connect.nx nx_http_client.nx nx_http_response_parse.nx nx_html_to_text.nx nx_browser_page_demo_test.nx

imports: nx_syscalls.nxnx_connect.nxnx_dns_resolve_a_record.nxnx_https_url_connect.nxnx_http_client.nxnx_http_response_parse.nxnx_html_to_text.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_dns_resolve_default nx_dns_resolve_with_failov nx_dns_resolve_a_record sys_mmap nx_dns_build_query nx_dns_put_u16_be nx_dns_encode_name sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap sys_sendto sys_close sys_recvfrom nx_dns_parse_response_a nx_dns_get_u16_be nx_dns_skip_name sys_socket ↻ sys_mmap ↻ nx_https_build_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close ↻ nx_http_client_build_reque hc_put_caps sys_mmap ↻ nx_codec_caps_headers sys_mmap ↻ nx_codec_caps_accept_docum sys_mmap ↻ nx_codec_caps_accept_image cc_image_have nx_cc_put cc_image_name nx_cc_put ↻

structs

none

consts

none

functions

25func _contains(hay: *u8, hlen: i64, needle: *u8, nlen: i64) -> i64
called by 1: main
43func _slen(s: *u8) -> i64
called by 1: main
49func main() -> i64