hibri / HttpMock

A library for creating Http servers on the fly in tests and stubbing responses
MIT License
128 stars 44 forks source link

Added byte array overload to Return method and added test #85

Closed tumbledwyer closed 7 years ago

tumbledwyer commented 7 years ago

Added functionality to return byte arrays as well as strings. This will take into account return values that are not just simple strings but rather streams that may be encoded with gzip, for instance.

hibri commented 7 years ago

Thanks for this Barry. Will look at it when I’m back at a computer next week.

On 12 Oct 2017, at 14:28, Barry Dwyer notifications@github.com wrote:

Added functionality to return byte arrays as well as strings. This will take into account return values that are not just simple strings but rather streams that may be encoded with gzip, for instance.

You can view, comment on, or merge this pull request online at:

https://github.com/hibri/HttpMock/pull/85

Commit Summary

Added byte array overload to Return method and added test File Changes

M src/HttpMock.Integration.Tests/HttpEndPointTests.cs (17) M src/HttpMock/IRequestStub.cs (1) M src/HttpMock/RequestHandler.cs (5) M src/HttpMock/ResponseBuilder.cs (8) Patch Links:

https://github.com/hibri/HttpMock/pull/85.patch https://github.com/hibri/HttpMock/pull/85.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.