Skip to main content

dump_html

Function dump_html 

Source
pub fn dump_html(context: &str, html: &str)
Expand description

Dumps the provided HTML to a file if the STEAM_USER_DEBUG_HTML environment variable is set.

The filename will be formatted as debug_html_{context}_{timestamp}.html.

§Arguments

  • context - A string identifier for where the dump is happening (e.g., “friends_list”).
  • html - The HTML content to dump.