mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-24 03:03:25 +00:00
This commit adds the demo of Server Sent Events functionality in the https_server/simple example Closes https://github.com/espressif/esp-idf/issues/13603 Co-authored-by: default avatarAditya Patwardhan <aditya.patwardhan@espressif.com>
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
menu "Example Configuration"
|
|
|
|
config EXAMPLE_BASIC_AUTH
|
|
bool "Basic Authentication"
|
|
default n
|
|
help
|
|
Basic Authentication is a method for an HTTP user agent (e.g. a web browser)
|
|
to provide a user name and password when making a request. It is the simplest
|
|
technique for enforcing access controls to web resources. because it doesn't
|
|
require cookies, session identifiers, or login pages; rather, it uses standard
|
|
fields in the HTTP header.
|
|
Note that, Basic Authentication is not encrypted channel and also easy to retrieve
|
|
credentials as they are sent in plain text format.
|
|
|
|
config EXAMPLE_BASIC_AUTH_USERNAME
|
|
string "Basic Authenticate User Name"
|
|
depends on EXAMPLE_BASIC_AUTH
|
|
default "ESP32"
|
|
help
|
|
The client's user name which used for basic authenticate.
|
|
|
|
config EXAMPLE_BASIC_AUTH_PASSWORD
|
|
string "Basic Authenticate Password"
|
|
depends on EXAMPLE_BASIC_AUTH
|
|
default "ESP32Webserver"
|
|
help
|
|
The client's password which used for basic authenticate.
|
|
|
|
config EXAMPLE_ENABLE_SSE_HANDLER
|
|
bool "Enable Server-Sent Events (SSE) handler"
|
|
default n
|
|
help
|
|
Enable this option to use Server-Sent Events (SSE) functionality.
|
|
This will allow the server to push real-time updates to the client over an HTTP connection.
|
|
|
|
endmenu
|