Skip to content

Conversation

@patuwwy
Copy link
Contributor

@patuwwy patuwwy commented Nov 20, 2023

What?
In this change, modifications were made to the makeRequest method to improve the handling of HTTP requests. Below is a detailed description of the changes:

A new variable expectedEvent was added, which is set to "response" or "continue" depending on the value of options.headers?.Expect. This change allows for more flexible event management depending on the expected HTTP headers.

Logging was changed, adding the event name to the debugging message. Now, instead of logging “making request”, we log “making request and waiting for event”, which gives more information about what event is expected.

The way events are handled by clientRequest was also changed. Now instead of always listening for the response event, we listen for the event specified by expectedEvent.

These changes should improve the handling of HTTP requests and provide more flexibility in handling different types of requests. Please review and approve these changes.

Review checks:

These aspects need to be checked by the reviewer:

  • Verify and confirm operation (please post a screenshot)
  • All STH tests pass
  • All Scramjet Cloud Platform tests pass
  • Documentation is updated or no changes

@patuwwy patuwwy force-pushed the fix/wait-continue-when-expect branch from d256406 to 8b75121 Compare November 21, 2023 11:43
@patuwwy patuwwy merged commit 33143bd into devel Nov 21, 2023
@patuwwy patuwwy deleted the fix/wait-continue-when-expect branch November 21, 2023 12:59
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.

4 participants