Skip to content
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

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented Mar 15, 2024

  • method
  • body
  • auth

closes INS-3606
closes INS-3624

@@ -87,6 +87,7 @@ interface OpenCurlRequestOptions {
workspaceId: string;
url: string;
headers: RequestHeader[];
authHeader?: { name: string; value: string };
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor Author

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?

@jackkav jackkav enabled auto-merge (squash) March 21, 2024 11:36
@jackkav jackkav merged commit a1cb6a6 into Kong:develop Mar 21, 2024
7 checks passed
@jackkav jackkav deleted the sse/add-auth-header branch March 21, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants