Skip to content

How to serve a static file directory with uWS #1003

Answered by uNetworkingAB
JemiloII asked this question in Q&A
Discussion options

You must be logged in to vote

App.static(path) could definitely be a feature to look at some point but not right now. uWS doesn't exist where it doesn't provide exceptional value, and so if it would have app.static, it would have to be one of the best performing such features. Right now, that's not the case, since it would require kTLS and sendfile which would lock it to Linux only, which is not the plan. So it's more than just an opinion - I don't want to add features which aren't obviously motivated. Esp. not since most companies use proxies and proxies have static file serving built-in

Replies: 10 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Mupli
Comment options

Answer selected by uNetworkingAB
Comment options

You must be logged in to vote
1 reply
@uNetworkingAB
Comment options

Comment options

You must be logged in to vote
6 replies
@erf
Comment options

@uasan
Comment options

@erf
Comment options

@erf
Comment options

@uasan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
8 participants
Converted from issue

This discussion was converted from issue #997 on December 24, 2023 04:34.