#content #bare-bones #http-1 #204

app hokay

A bare-bones HTTP server that always returns with 204 No Content

4 releases

0.2.2 Jul 21, 2022
0.2.1 Jul 21, 2022
0.2.0 Apr 24, 2022
0.1.0 Apr 22, 2022

#869 in HTTP server

MIT license

10KB
69 lines

hokay

A bare-bones HTTP/1 server that always returns 204 No content.

This program aims to take minimal dependencies and is expected to be updated infrequently.

Usage

:; hokay
:; curl -v localhost:8080
*   Trying ::1:8080...
* connect to ::1 port 8080 failed: Connection refused
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.74.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 204 No Content
< server: hokay
< date: Fri, 22 Apr 2022 15:18:10 GMT
<
* Connection #0 to host localhost left intact

License

This program is distributed under the MIT license.

Dependencies

~7–16MB
~202K SLoC