mirror of
https://github.com/alibaba/higress.git
synced 2026-03-09 11:10:49 +08:00
add info log of ai-search plugin (#2323)
This commit is contained in:
@@ -38,6 +38,7 @@ type HttpClient interface {
|
||||
Connect(rawURL string, headers [][2]string, body []byte, cb ResponseCallback, timeoutMillisecond ...uint32) error
|
||||
Trace(rawURL string, headers [][2]string, body []byte, cb ResponseCallback, timeoutMillisecond ...uint32) error
|
||||
Call(method, rawURL string, headers [][2]string, body []byte, cb ResponseCallback, timeoutMillisecond ...uint32) error
|
||||
ClusterName() string
|
||||
}
|
||||
|
||||
type ClusterClient[C Cluster] struct {
|
||||
@@ -80,6 +81,8 @@ func (c ClusterClient[C]) Call(method, rawURL string, headers [][2]string, body
|
||||
return HttpCall(c.cluster, method, rawURL, headers, body, cb, timeoutMillisecond...)
|
||||
}
|
||||
|
||||
func (c ClusterClient[C]) ClusterName() string { return c.cluster.ClusterName() }
|
||||
|
||||
func HttpCall(cluster Cluster, method, rawURL string, headers [][2]string, body []byte,
|
||||
callback ResponseCallback, timeoutMillisecond ...uint32) error {
|
||||
for i := len(headers) - 1; i >= 0; i-- {
|
||||
|
||||
Reference in New Issue
Block a user