mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-02-03 21:55:08 +01:00
add request->redirect(url)
This commit is contained in:
@@ -694,6 +694,12 @@ void AsyncWebServerRequest::sendChunked(String contentType, AwsResponseFiller ca
|
||||
send(beginChunkedResponse(contentType, callback));
|
||||
}
|
||||
|
||||
void AsyncWebServerRequest::redirect(String url){
|
||||
AsyncWebServerResponse * response = beginResponse(302);
|
||||
response->addHeader("Location",url);
|
||||
send(response);
|
||||
}
|
||||
|
||||
|
||||
bool AsyncWebServerRequest::authenticate(const char * username, const char * password){
|
||||
if(_authorization.length()){
|
||||
|
||||
Reference in New Issue
Block a user