Commits


amused-web: centralize the imsg handling Keep a copy of the playing queue, status etc. to render the UI without doing imsg in the render path.


don't reply with a STATUS on MODE change This is to help amused-web. Change the ctl to send an extra STATUS after a MODE change to preserve the behaviour.


amused-web: sync DISTFILES


amused-web: split out css and js to their own routes In the future we could apply some caching to these.


amused-web: rename variable for clarity


amused-web: strip the query from the request path


amused-web: set http.[ch] as public domain code


amused-web: set the chunking earlier


amused-web: simplify parsing of the first line of the request


amused-web: log the HTTP version too


amused-web: reply with the right HTTP version


amused-web: rework client handling on top of bufio / ev


amused-web: tweak bufio APIs for future HTTP usage add bufio_free() to free the bufio without re-initialization, add support for writing HTTP-style chunks and add ability to extract data from the read buffer via the bufio_* layer instead of peeking at the internals.


amused-web: crank up BIO_CHUNK


amused-web: drop double bufio_reset() prototype