mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-15 21:32:40 +01:00
WithBodyFromFile (relative)
This commit is contained in:
1 parent
cbe6a0a2b4
commit
a96b7bca1e
1 file changed
+6
@@ -42,6 +42,12 @@ namespace WireMock.Net.ConsoleApplication
|
||||
.WithBodyFromFile(@"c:\temp\x.json")
|
||||
);
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithPath("/file_rel").UsingGet())
|
||||
.RespondWith(Response.Create()
|
||||
.WithBodyFromFile("Program.cs", false)
|
||||
);
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithHeader("ProxyThis", "true")
|
||||
.UsingGet())
|
||||
|
||||
Reference in new issue
Block a user