mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Does Wiremock Support HttpCompletionOption.ResponseHeadersRead #499
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jodendaal on GitHub (Mar 22, 2023).
I am attempting to use wiremock to test my OpenAI Library with the streaming method.
OpenAI stream the data in the following following format. For reference OpenAI Doc Link
I have the following code to send the request and stream it back which does work with the live API. I'm struggling to replicate this with wiremock.
I have tried the following but keep getting a 404. Any help would be appreciated.
Here is a test PR with the changes in for reference. Link to PR
@StefH commented on GitHub (Mar 22, 2023):
@jodendaal
You can check the partial matching result in the log entries --> https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching-Tips
This shows that the body is not matched:

After some debugging I found this difference:

@jodendaal commented on GitHub (Mar 22, 2023):
Thank you. I see what issues was now. I'll have look at the partial matching too.