step/http.go
2024-12-06 00:14:55 -05:00

16 lines
352 B
Go

package step
import "net/http"
// HTTPData represents information about an ongoing HTTP request that is made
// available to templates as they are being executed.
type HTTPData struct {
// Res is like an http.ResponseWriter.
Res struct {
Header http.Header
WriteHeader func (statusCode int)
}
// Req is the HTTP request.
Req *http.Request
}