examples: add http-dialer using net/http:Client #24

Open
cblgh wants to merge 5 commits from examples-http-client into main
Collaborator

New example that builds on echo-endpoint. It has both an http server that is served over iroh, as well as an http client (using net/http:Client.Post) that sends a POST request to the server.

With this example we've now completed the "http over iroh" loop, all done using iroh-go and the go standard library :)

Btw not sure if the makefile will work for this one? What invocation do you use to get it to build binaries (I just use my gor alias for go run during local development).

fwiw example has a lot of TODOs in the net.Conn implementation 'X)


ai code disclosure: #neverslop don't use em

New example that builds on `echo-endpoint`. It has both an http server that is served over iroh, as well as an http client (using `net/http:Client.Post`) that sends a POST request to the server. With this example we've now completed the "http over iroh" loop, all done using `iroh-go` and the go standard library :) Btw not sure if the makefile will work for this one? What invocation do you use to get it to build binaries (I just use my `gor` alias for `go run` during local development). fwiw example has a lot of TODOs in the `net.Conn` implementation 'X) --- ai code disclosure: #neverslop don't use em
cblgh added 1 commit 2026-10-22 14:13:06 +00:00
examples: add http-client using net/http:Client
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
b48ece9d40
cblgh added 1 commit 2026-10-22 14:14:01 +00:00
examples(http-dialer): readme
continuous-integration/drone/push Build is passing
1954c5fbff
cblgh added 1 commit 2026-10-23 07:08:05 +00:00
examples(http-dialer): add note about net.Conn interface
continuous-integration/drone/push Build is passing
8a35d55e10
cblgh added 1 commit 2026-10-23 07:23:07 +00:00
cblgh added 1 commit 2026-10-23 07:27:50 +00:00
examples(http-dialer): readme edits
continuous-integration/drone/push Build is passing
cdac97b70e
cblgh changed title from examples: add http-client using net/http:Client to examples: add http-dialer using net/http:Client 2026-10-23 07:46:52 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin examples-http-client:examples-http-client
git checkout examples-http-client
Sign in to join this conversation.