Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download api/pkg/handlers/handler_test.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/handlers/handler_test.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/handlers/handler_test.go
-
curl -L -o handler_test.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/handlers/handler_test.go
310 Bytes
| //go:build integration | |
| package handlers | |
| import ( | |
| "os" | |
| "github.com/carlmjohnson/requests" | |
| _ "github.com/joho/godotenv/autoload" // import USER_API_KEY from .env file | |
| ) | |
| func testClient() *requests.Builder { | |
| return requests.URL("http://localhost:8000"). | |
| Header("x-api-key", os.Getenv("USER_API_KEY")) | |
| } | |