package main
import (
"fmt"
"io"
"log"
"os"
)
func main() {
body, err := io.ReadAll(os.Stdin)
if err != nil {
log.Printf("Error: 无法读取响应体: %v\n", err)
return
}
fmt.Printf(`HTTP/1.1 200 OK
Server: openresty
Date: Thu, 25 Dec 2025 05:53:44 GMT
Content-Type: image/png
Content-Length: %d
Connection: close
X-Served-By: function.coocn.cn
`+"\n", len(body))
os.Stdout.Write(body)
}
{
"out":"http"
}
module glot-api
go 1.24.5