Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch1: Support view-source scheme #16

Open
2 tasks
corona10 opened this issue Apr 21, 2021 · 0 comments
Open
2 tasks

ch1: Support view-source scheme #16

corona10 opened this issue Apr 21, 2021 · 0 comments
Labels
exercise Exercises

Comments

@corona10
Copy link
Contributor

corona10 commented Apr 21, 2021

In addition to HTTP and HTTPS, there are other schemes, such as view-source; navigating in a real browser to view-source:browser.engineering/http.html shows the HTML source of this chapter rather than its rendered output. Add support for the view-source scheme. Your browser should print the entire HTML file as if it was text. Hint: To do so, you can utilize the entities from the previous exercise, and add an extra transform() method that adjusts the input to show() when in view-source mode, like this: show(transform(body))

  • Python
  • Rust
@corona10 corona10 added the exercise Exercises label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exercise Exercises
Projects
None yet
Development

No branches or pull requests

1 participant