mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
refactor(wsrelay): rename RoundTrip to NonStream
This commit is contained in:
@@ -35,8 +35,8 @@ type StreamEvent struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
// RoundTrip executes a non-streaming HTTP request using the websocket provider.
|
||||
func (m *Manager) RoundTrip(ctx context.Context, provider string, req *HTTPRequest) (*HTTPResponse, error) {
|
||||
// NonStream executes a non-streaming HTTP request using the websocket provider.
|
||||
func (m *Manager) NonStream(ctx context.Context, provider string, req *HTTPRequest) (*HTTPResponse, error) {
|
||||
if req == nil {
|
||||
return nil, fmt.Errorf("wsrelay: request is nil")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user