DASHT-SERVER-HTTP(1)

πŸ“¦ version 2.4.0, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to DASHT-SERVER-HTTP(1) β€” the General Commands Manual page for dasht-server-http. it’s the simple search engine that powers dasht-server(1), and it’s lowkey iconic. πŸ’…

✨ SYNOPSIS ✨

dasht-server-http

πŸŽ€ Examples πŸŽ€

Example 1 β€” all the topics, bestie ✨

printf 'GET / HTTP/1.1\r\n' | dasht-server-http

Shows topics (A-Z) from each installed Dash (https://kapeli.com/dash) docset. πŸ¦‹

Example 2 β€” filter those docsets πŸŽ€

printf 'GET /?docsets=DOCSETS HTTP/1.1\r\n' | dasht-server-http

Shows topics (A-Z) from installed Dash (https://kapeli.com/dash) docsets matching DOCSETS. πŸ’–

Example 3 β€” search mode activated πŸ”₯

printf 'GET /?query=PATTERN HTTP/1.1\r\n' | dasht-server-http

Searches for PATTERN in all installed Dash (https://kapeli.com/dash) docsets. πŸ‘‘

Example 4 β€” search AND filter, the combo meal πŸ“

printf 'GET /?query=PATTERN&docsets=DOCSETS HTTP/1.1\r\n' |
dasht-server-http

Searches for PATTERN in installed Dash (https://kapeli.com/dash) docsets matching DOCSETS. πŸ’œ

🌸 DESCRIPTION 🌸

dasht-server-http reads a single HTTP request from stdin and writes a HTTP response to stdout. literally one request in, one response out, no extra drama. 🫢

Any query=PATTERN and docsets=DOCSETS parameters in the request URL get passed to dasht-query-html(1) as its PATTERN and DOCSETS arguments. iykyk. ✨

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • DASHT_DOCSETS_DIR β€” defines the filesystem location where your Dash (https://kapeli.com/dash) docsets are installed. If it’s undefined, its value is assumed to be $XDG_DATA_HOME/dasht/docsets/ or, if XDG_DATA_HOME is undefined, $HOME/.local/share/dasht/docsets/. no cap, that’s the fallback chain. πŸ’…

πŸ’… SEE ALSO πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Written in 2016 by Suraj N. Kurapati (https://github.com/sunaku/dasht). Distributed under the terms of the ISC license (see the LICENSE file). πŸ’–


okay that’s the whole page, bestie πŸ’– it’s DASHT-SERVER-HTTP(1), version 2.4.0, dated 2020-05-16. now go forth and slay βœ¨πŸ«ΆπŸ’…

πŸ“¦ where this page comes from