Skip to content

Conversation

@amaitland
Copy link
Member

Due to a recent flood of requests around RespondWith not being implemented, I've created this PR

GetResourceHandler replaces RespondWith that was previously part of OnBeforeResourceLoad. I've also cleaned up some code related to RequestResponse

  • Split RequestResponse into a separate Response class and pass in Request as it's own param
  • Implement GetResourceHandler which allows for providing a Stream for a file.
  • Move Response into c# land

@amaitland
Copy link
Member Author

Can be tested by navigating to http://test/resource/load in the Wpf.Example

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing license header ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@jornh jornh mentioned this pull request Nov 18, 2014
@jornh
Copy link
Contributor

jornh commented Nov 18, 2014

(Sweet 🎯) Success

This document is loaded from a System.IO.Stream

More C#, fewer LoC, Streams. What's not to like? Merging now!

jornh added a commit that referenced this pull request Nov 18, 2014
@jornh jornh merged commit 7dd065e into cefsharp:master Nov 18, 2014
@amaitland amaitland deleted the feature/respond-with branch November 18, 2014 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants