Skip to content

Commit 78faa4d

Browse files
committed
Update license headers on source files to be compliant with LGPL, by using the SPDX identifier.
Refs: - https://spdx.org/licenses/LGPL-3.0-or-later.html - https://www.gnu.org/licenses/gpl-howto.html
1 parent 0ec6c7f commit 78faa4d

22 files changed

+58
-285
lines changed

Diff for: 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, 2024, 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>

Diff for: 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, 2024, 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

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include "AsyncJson.h"
25

36
#if ASYNC_JSON_SUPPORT == 1

Diff for: 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, 2024, 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

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include "AsyncMessagePack.h"
25

36
#if ASYNC_MSG_PACK_SUPPORT == 1

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#pragma once
25

36
/*

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include <ESPAsyncWebServer.h>
25

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

Diff for: 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, 2024, 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

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#ifndef ASYNCWEBSOCKET_H_
225
#define ASYNCWEBSOCKET_H_
236

Diff for: 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, 2024, 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)

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#ifndef CHUNKPRINT_H
25
#define CHUNKPRINT_H
36

Diff for: 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, 2024, 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

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
14
#include "WebAuthentication.h"
25
#include <ESPAsyncWebServer.h>
36

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#include "WebAuthentication.h"
225
#include <libb64/cencode.h>
236
#if defined(ESP32) || defined(TARGET_RP2040)

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
213

224
#ifndef WEB_AUTHENTICATION_H_
235
#define WEB_AUTHENTICATION_H_

Diff for: 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, 2024, 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

Diff for: 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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#include "ESPAsyncWebServer.h"
225
#include "WebHandlerImpl.h"
236

Diff for: src/WebRequest.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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#include "ESPAsyncWebServer.h"
225
#include "WebAuthentication.h"
236
#include "WebResponseImpl.h"

Diff for: src/WebResponseImpl.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, 2024, 2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
3+
214
#ifndef ASYNCWEBSERVERRESPONSEIMPL_H_
225
#define ASYNCWEBSERVERRESPONSEIMPL_H_
236

0 commit comments

Comments
 (0)