mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-04-19 04:27:27 +00:00
10 lines
308 B
Go
10 lines
308 B
Go
package service
|
|
|
|
import "net/http"
|
|
|
|
// HTTPUpstream interface for making HTTP requests to upstream APIs (Claude, OpenAI, etc.)
|
|
// This is a generic interface that can be used for any HTTP-based upstream service.
|
|
type HTTPUpstream interface {
|
|
Do(req *http.Request, proxyURL string) (*http.Response, error)
|
|
}
|