(defcomp
  ()
  (~examples/page-content
    :title "Vals & Headers"
    :description "sx-vals adds extra key/value pairs to the request parameters. sx-headers adds custom HTTP headers. The server echoes back what it received."
    :demo-description "Click each button to see what the server receives."
    :demo (~examples/vals-headers-demo)
    :sx-code ";; Send extra values with the request\n(button\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.echo-vals))))\"\n  :sx-vals \"{\\\"source\\\": \\\"button\\\"}\"\n  \"Send with vals\")\n\n;; Send custom headers\n(button\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.echo-headers))))\"\n  :sx-headers {:X-Custom-Token \"abc123\"}\n  \"Send with headers\")"
    :handler-names (list "ex-echo-vals" "ex-echo-headers")
    :comp-placeholder-id "vals-comp"
    :wire-placeholder-id "vals-wire"))
