
上QQ阅读APP看书,第一时间看更新
Implementing basic authentication on a simple HTTP server
Once you have created the HTTP server then you probably want to restrict resources from being accessed by a specific user, such as the administrator of an application. If so, then you can implement basic authentication on an HTTP server, which we will be covering in this recipe.