http_get

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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 debuglet reads as a normal io.EOF.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL