Skip to content

Commit f6f1d8f

Browse files
committed
Update license headers on source files to be compliant with LGPL, by using the SPDX identifier.
The project is under LGPL license so the source files should reflect that by having a license header compliant with LGPL, or at least have an appropriate SPDX header. This changed is required to allow the source files to be used in downstream project because some files are not licensed in accordance to the LPGL rules. Refs: - https://www.gnu.org/licenses/gpl-howto.html - https://spdx.dev/learn/handling-license-info/ - https://spdx.org/licenses/LGPL-3.0-or-later.html
1 parent 9bdefb8 commit f6f1d8f

30 files changed

+82
-288
lines changed

examples/CaptivePortal/CaptivePortal.ino

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include <DNSServer.h>
25
#ifdef ESP32
36
#include <AsyncTCP.h>

examples/Filters/Filters.ino

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
// Reproduced issue https://github.com/ESP32Async/ESPAsyncWebServer/issues/26
25

36
#include <DNSServer.h>

examples/Issue162/Issue162.ino

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
/**
25
*
36
* Connect to AP and run in bash:

examples/Issue85/Issue85.ino

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
/**
25
*
36
* Connect to AP and run in bash:

examples/SSE_perftest/SSE_perftest.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
//
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
24
// SSE server with a load generator
35
// it will auto adjust message push rate to minimize discards across all connected clients
46
// per second stats is printed to a serial console and also published as SSE ping message

examples/SimpleServer/SimpleServer.ino

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
//
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
24
// A simple server implementation showing how to:
35
// * serve static messages
46
// * read GET and POST parameters
57
// * handle missing pages / 404s
6-
//
78

89
#include <Arduino.h>
910
#ifdef ESP32

examples/StreamFiles/StreamConcat.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#pragma once
25

36
#include <Stream.h>

examples/StreamFiles/StreamFiles.ino

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include <Arduino.h>
25
#include <DNSServer.h>
36
#ifdef ESP32

src/AsyncEventSource.cpp

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
33

4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
6-
This library is free software; you can redistribute it and/or
7-
modify it under the terms of the GNU Lesser General Public
8-
License as published by the Free Software Foundation; either
9-
version 2.1 of the License, or (at your option) any later version.
10-
11-
This library is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14-
Lesser General Public License for more details.
15-
16-
You should have received a copy of the GNU Lesser General Public
17-
License along with this library; if not, write to the Free Software
18-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19-
*/
204
#include "Arduino.h"
215
#if defined(ESP32)
226
#include <rom/ets_sys.h>

src/AsyncEventSource.h

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
33

4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
6-
This library is free software; you can redistribute it and/or
7-
modify it under the terms of the GNU Lesser General Public
8-
License as published by the Free Software Foundation; either
9-
version 2.1 of the License, or (at your option) any later version.
10-
11-
This library is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14-
Lesser General Public License for more details.
15-
16-
You should have received a copy of the GNU Lesser General Public
17-
License along with this library; if not, write to the Free Software
18-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19-
*/
204
#ifndef ASYNCEVENTSOURCE_H_
215
#define ASYNCEVENTSOURCE_H_
226

src/AsyncJson.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include "AsyncJson.h"
25

36
#if ASYNC_JSON_SUPPORT == 1

src/AsyncJson.h

+2-33
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
1-
// AsyncJson.h
2-
/*
3-
Async Response to use with ArduinoJson and AsyncWebServer
4-
Written by Andrew Melvin (SticilFace) with help from me-no-dev and BBlanchon.
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
53

6-
Example of callback in use
7-
8-
server.on("/json", HTTP_ANY, [](AsyncWebServerRequest * request) {
9-
10-
AsyncJsonResponse * response = new AsyncJsonResponse();
11-
JsonObject& root = response->getRoot();
12-
root["key1"] = "key number one";
13-
JsonObject& nested = root.createNestedObject("nested");
14-
nested["key1"] = "key number one";
15-
16-
response->setLength();
17-
request->send(response);
18-
});
19-
20-
--------------------
21-
22-
Async Request to use with ArduinoJson and AsyncWebServer
23-
Written by Arsène von Wyss (avonwyss)
24-
25-
Example
26-
27-
AsyncCallbackJsonWebHandler* handler = new AsyncCallbackJsonWebHandler("/rest/endpoint");
28-
handler->onRequest([](AsyncWebServerRequest *request, JsonVariant &json) {
29-
JsonObject jsonObj = json.as<JsonObject>();
30-
// ...
31-
});
32-
server.addHandler(handler);
33-
34-
*/
354
#ifndef ASYNC_JSON_H_
365
#define ASYNC_JSON_H_
376

src/AsyncMessagePack.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include "AsyncMessagePack.h"
25

36
#if ASYNC_MSG_PACK_SUPPORT == 1

src/AsyncMessagePack.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#pragma once
25

36
/*

src/AsyncWebHeader.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include <ESPAsyncWebServer.h>
25

36
AsyncWebHeader::AsyncWebHeader(const String &data) {

src/AsyncWebSocket.cpp

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
3-
4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
163

17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
214
#include "AsyncWebSocket.h"
225
#include "Arduino.h"
236

src/AsyncWebSocket.h

+3-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
3-
4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#ifndef ASYNCWEBSOCKET_H_
225
#define ASYNCWEBSOCKET_H_
236

src/ChunkPrint.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include <ChunkPrint.h>
25

36
ChunkPrint::ChunkPrint(uint8_t *destination, size_t from, size_t len) : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {}

src/ChunkPrint.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#ifndef CHUNKPRINT_H
25
#define CHUNKPRINT_H
36

src/ESPAsyncWebServer.h

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
3-
4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
163

17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
214
#ifndef _ESPAsyncWebServer_H_
225
#define _ESPAsyncWebServer_H_
236

src/Middleware.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include "WebAuthentication.h"
25
#include <ESPAsyncWebServer.h>
36

src/WebAuthentication.cpp

+3-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
3-
4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#include "WebAuthentication.h"
225
#include <libb64/cencode.h>
236
#if defined(ESP32) || defined(TARGET_RP2040)

src/WebAuthentication.h

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
3-
4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
213

224
#ifndef WEB_AUTHENTICATION_H_
235
#define WEB_AUTHENTICATION_H_

src/WebHandlerImpl.h

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
33

4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
214
#ifndef ASYNCWEBSERVERHANDLERIMPL_H_
225
#define ASYNCWEBSERVERHANDLERIMPL_H_
236

src/WebHandlers.cpp

+3-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
/*
2-
Asynchronous WebServer library for Espressif MCUs
3-
4-
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
5-
This file is part of the esp8266 core for Arduino environment.
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General Public
18-
License along with this library; if not, write to the Free Software
19-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20-
*/
1+
// SPDX-License-Identifier: LGPL-3.0-or-later
2+
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#include "ESPAsyncWebServer.h"
225
#include "WebHandlerImpl.h"
236

0 commit comments

Comments
 (0)