code wiki / (root) / nx_browser_page_demo_test.nx

nx_browser_page_demo_test.nx

buildroot/runtime/nx_browser_page_demo_test.nx

6756 B155 linesdepth 21pulls 152 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 8 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_https_fetch_lib.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.nxnx_https_fetch_lib.nx

imported by: nobody (leaf or entry point)

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

main _slen nx_dns_resolve_default nx_dns_resolve_with_failov nx_dns_resolve_a_record sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable nxa_dump_sizes 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

structs

none

consts

none

functions

26func _contains(hay: *u8, hlen: i64, needle: *u8, nlen: i64) -> i64
called by 1: main
44func _slen(s: *u8) -> i64
called by 1: main
50func main() -> i64