~stacyharper

Cyber Space, sometime in France

https://willowbarraco.fr

Willow Barraco, a french trans lesbian lover.

I write code, freelance and hireable.

If you like what I an doing, please consider supporting it

https://liberapay.com/StacyHarper https://donate.missbanal.net

~stacyharper/fossbill-discuss

Last active 9 months ago

~stacyharper/fossbill-devel

Last active 1 year, 2 months ago

~stacyharper/fossbill-announce

Last active 1 year, 2 months ago

~stacyharper/bonsai-discuss

Last active 1 year, 3 months ago

~stacyharper/public-inbox

Last active 1 year, 5 months ago

~stacyharper/bonsai-devel

Last active 1 year, 8 months ago

~stacyharper/bonsai-announce

Last active 1 year, 8 months ago

~stacyharper/cogitatis

Last active 2 years ago
View more

Recent activity

[PATCH hare-ev 3/3] add httpclient a day ago

From Willow Barraco to ~sircmpwn/hare-dev

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 cmd/httpclient/main.ha |  90 ++++++++++++++++++++++++
 ev/client/client.ha    |  15 ++++
 ev/client/http.ha      | 153 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 258 insertions(+)
 create mode 100644 cmd/httpclient/main.ha
 create mode 100644 ev/client/client.ha
 create mode 100644 ev/client/http.ha

diff --git a/cmd/httpclient/main.ha b/cmd/httpclient/main.ha
new file mode 100644
index 0000000..b5e6528
--- /dev/null
[message trimmed]

[PATCH hare-ev 2/3] add httpserv a day ago

From Willow Barraco to ~sircmpwn/hare-dev

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 cmd/httpserv/main.ha |  83 ++++++++++++++++++++++++++++
 ev/server/http.ha    | 125 +++++++++++++++++++++++++++++++++++++++++++
 ev/server/server.ha  |  61 +++++++++++++++++++++
 3 files changed, 269 insertions(+)
 create mode 100644 cmd/httpserv/main.ha
 create mode 100644 ev/server/http.ha
 create mode 100644 ev/server/server.ha

diff --git a/cmd/httpserv/main.ha b/cmd/httpserv/main.ha
new file mode 100644
index 0000000..6633dbc
--- /dev/null
[message trimmed]

[PATCH hare-ev 1/3] fix: typo a day ago

From Willow Barraco to ~sircmpwn/hare-dev

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 ev/dial/ip.ha | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ev/dial/ip.ha b/ev/dial/ip.ha
index ce718e7..e8a3b6b 100644
--- a/ev/dial/ip.ha
+++ b/ev/dial/ip.ha
@@ -90,7 +90,7 @@ fn dial_tcp_connectcb(
};

fn dial_tcp_cancel(req: *ev::req) void = {
	let state = req: *tcp_dialer;
[message trimmed]

[PATCH hare-http 5/5] use back transport for request/response scanning a day ago

From Willow Barraco to ~sircmpwn/hare-dev

We use an io::handle rather than an io::stream now that we check if the body is
complete while parsing the message.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 cmd/http/main.ha      |   2 +-
 net/http/request.ha   |  50 +++-----
 net/http/response.ha  |  48 +++-----
 net/http/transport.ha | 277 ++++++++++--------------------------------
 4 files changed, 106 insertions(+), 271 deletions(-)

diff --git a/cmd/http/main.ha b/cmd/http/main.ha
index 81bd7c3..938e09f 100644
--- a/cmd/http/main.ha
[message trimmed]

[PATCH hare-http 4/5] Refact do to export parse responses methods a day ago

From Willow Barraco to ~sircmpwn/hare-dev

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 net/http/do.ha       | 102 +---------------------------
 net/http/request.ha  |   1 -
 net/http/response.ha | 156 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 158 insertions(+), 101 deletions(-)

diff --git a/net/http/do.ha b/net/http/do.ha
index 33a8f71..b43970a 100644
--- a/net/http/do.ha
+++ b/net/http/do.ha
@@ -1,15 +1,7 @@
use bufio;
use encoding::utf8;
[message trimmed]

[PATCH hare-http 3/5] do: move to an external request_write_internal a day ago

From Willow Barraco to ~sircmpwn/hare-dev

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 net/http/do.ha      | 26 +-------------------------
 net/http/request.ha | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 25 deletions(-)

diff --git a/net/http/do.ha b/net/http/do.ha
index a0020c6..33a8f71 100644
--- a/net/http/do.ha
+++ b/net/http/do.ha
@@ -25,33 +25,9 @@ export fn do(client: *client, req: *request) (response | error) = {
	let file = bufio::init(conn, [], buf);
	bufio::setflush(&file, []);

[message trimmed]

[PATCH hare-http 2/5] Use add_content_length while doing requests a day ago

From Willow Barraco to ~sircmpwn/hare-dev

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 net/http/do.ha     |  2 ++
 net/http/header.ha | 15 +++++++++++++++
 net/http/server.ha | 18 +-----------------
 3 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/net/http/do.ha b/net/http/do.ha
index 99786eb..a0020c6 100644
--- a/net/http/do.ha
+++ b/net/http/do.ha
@@ -32,6 +32,8 @@ export fn do(client: *client, req: *request) (response | error) = {
	uri::fmt(&file, &target)?;
	fmt::fprintf(&file, " HTTP/1.1\r\n")?;
[message trimmed]

[PATCH hare-http 1/5] http/server: fixes a day ago

From Willow Barraco to ~sircmpwn/hare-dev

We changed lot of things from this initial version.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 cmd/http/main.ha      |   9 +--
 cmd/httpd/main.ha     |  95 +++++++++++++-----------------
 net/http/do.ha        |  17 +++---
 net/http/header.ha    |  13 +++--
 net/http/request.ha   | 120 +++++++++++++++++++++++---------------
 net/http/response.ha  |  53 ++++++-----------
 net/http/server.ha    | 130 ++++++++++++++++++++++++++++++++++--------
 net/http/status.ha    |   4 +-
 net/http/transport.ha |  24 ++++++--
 9 files changed, 278 insertions(+), 187 deletions(-)
[message trimmed]

[PATCH hare-http 0/5] http/server: hare-ev compatible a day ago

From Willow Barraco to ~sircmpwn/hare-dev

The first patch is a squashed commit to bring back the reviewed changed
we missed while merging the initial http server code (plus some
additional changes I did afterward).

The later patches refactorize the code to hare-ev.