-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support SSE method, request body and auth #7182
Conversation
3f41964
to
22b8318
Compare
@@ -87,6 +87,7 @@ interface OpenCurlRequestOptions { | |||
workspaceId: string; | |||
url: string; | |||
headers: RequestHeader[]; | |||
authHeader?: { name: string; value: string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there is a specific signature for this.
@@ -142,11 +143,15 @@ const openCurlConnection = async ( | |||
caCert: caCertificate, | |||
certificates: filteredClientCertificates, | |||
}); | |||
// set method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Probably we should consider to make this function to follow Open-Closed principle at some time to make it easier to maintain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand could you provide an example?
22b8318
to
8d79e25
Compare
closes INS-3606
closes INS-3624