Documentation
¶
Overview ¶
http_get — plaintext HTTP/1.0 request, written with the Debuglet Go SDK.
Sends one GET over a TCP connection and reports the status line and the sizes of the response. It speaks just enough HTTP to be readable; it is not an HTTP client library. Use ConnectTLS for HTTPS, which needs a target with a certificate the executor's system roots trust.
Build and run:
make wasm SAMPLE_DIR=examples/debuglets/go/http_get dbl run --wasm examples/debuglets/go/http_get/debuglet.wasm \ --executor EXECUTOR_ID --allow 127.0.0.1 --wait -- -addr 127.0.0.1:8080 -path /
The destination must be in the job's --allow list. "Connection: close" makes the server end the stream, which the guest reads as a normal io.EOF.
Click to show internal directories.
Click to hide internal directories.