Page MenuHomeDevCentral

Add support for HEAD requests in wurf
Open, WishlistPublic

Description

HTTP clients, especially when sharing a link to a messaging applications, can automatically issue a HEAD request to sniff the kind of file.

Plan could be:

  • to clean up the code to split in different methods the code to handle upload and the code to handle files serving
  • to split those new functions into sending headers, sending body
  • to add 2x2 new functions to handle HEAD and GET requests for download, then for upload

Event Timeline

dereckson triaged this task as Wishlist priority.Oct 18 2024, 21:45
dereckson created this task.

https://github.com/simon-budig/woof/pull/17 offers a solution, but the code is very tangled. My initial plan noted in task description is based on my review on that pull request.

See especially https://martinfowler.com/bliki/FlagArgument.html