document the requestline and close_connection attributes, use real booleans, and add tests (closes #23410)

Patch by Martin Panter.
3 files changed