aboutsummaryrefslogtreecommitdiff
path: root/lib/http
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http')
-rw-r--r--lib/http/callback.go5
-rw-r--r--lib/http/callback_error_handler.go5
-rw-r--r--lib/http/client_example_test.go3
-rw-r--r--lib/http/client_options.go3
-rw-r--r--lib/http/client_request.go5
-rw-r--r--lib/http/client_response.go3
-rw-r--r--lib/http/client_test.go5
-rw-r--r--lib/http/download_request.go5
-rw-r--r--lib/http/endpoint_example_test.go5
-rw-r--r--lib/http/endpoint_request.go5
-rw-r--r--lib/http/endpoint_response_example_test.go5
-rw-r--r--lib/http/endpoint_response_test.go5
-rw-r--r--lib/http/evaluator.go5
-rw-r--r--lib/http/form_example_test.go3
-rw-r--r--lib/http/form_test.go3
-rw-r--r--lib/http/fs_handler.go7
-rw-r--r--lib/http/http.go5
-rw-r--r--lib/http/http_example_test.go5
-rw-r--r--lib/http/http_test.go5
-rw-r--r--lib/http/multipart_form.go5
-rw-r--r--lib/http/multipart_form_test.go5
-rw-r--r--lib/http/range.go3
-rw-r--r--lib/http/range_example_test.go3
-rw-r--r--lib/http/range_position.go3
-rw-r--r--lib/http/range_position_example_test.go3
-rw-r--r--lib/http/range_position_test.go3
-rw-r--r--lib/http/range_test.go3
-rw-r--r--lib/http/request_method.go5
-rw-r--r--lib/http/request_type.go5
-rw-r--r--lib/http/request_type_test.go5
-rw-r--r--lib/http/response.go5
-rw-r--r--lib/http/response_type_test.go5
-rw-r--r--lib/http/route.go5
-rw-r--r--lib/http/server_benchmark_test.go3
-rw-r--r--lib/http/server_options.go5
-rw-r--r--lib/http/sse_conn.go5
-rw-r--r--lib/http/sse_endpoint.go5
-rw-r--r--lib/http/sse_endpoint_test.go5
-rw-r--r--lib/http/sseclient/event.go5
-rw-r--r--lib/http/sseclient/sseclient_test.go5
-rw-r--r--lib/http/testdata/GenerateFormData_test.txt2
-rw-r--r--lib/http/testdata/Server_HandleFS_test.txt2
-rw-r--r--lib/http/testdata/auth/index.html.license2
-rw-r--r--lib/http/testdata/auth/sub/index.html.license2
-rw-r--r--lib/http/testdata/handleDelete_test.txt3
-rw-r--r--lib/http/testdata/index.html.license2
-rw-r--r--lib/http/testdata/index.js.license2
-rw-r--r--lib/http/testdata/range/invalid_boundary_test.txt3
-rw-r--r--lib/http/testdata/range/missing_last_boundary_test.txt3
-rw-r--r--lib/http/testdata/range/ok_test.txt3
-rw-r--r--lib/http/testdata/server/head_range_test.txt3
-rw-r--r--lib/http/testdata/server/range/empty_test.txt3
-rw-r--r--lib/http/testdata/server/range/fail_416_test.txt3
-rw-r--r--lib/http/testdata/server/range/fail_unit_test.txt3
-rw-r--r--lib/http/testdata/server/range/multipart_test.txt3
-rw-r--r--lib/http/testdata/server/range/single_test.txt3
-rw-r--r--lib/http/testdata/server/range_big_test.txt2
57 files changed, 137 insertions, 85 deletions
diff --git a/lib/http/callback.go b/lib/http/callback.go
index 24e7ef93..34ad0f67 100644
--- a/lib/http/callback.go
+++ b/lib/http/callback.go
@@ -1,6 +1,5 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/callback_error_handler.go b/lib/http/callback_error_handler.go
index 7a1c075d..d51c47c8 100644
--- a/lib/http/callback_error_handler.go
+++ b/lib/http/callback_error_handler.go
@@ -1,6 +1,5 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/client_example_test.go b/lib/http/client_example_test.go
index 22b24285..2bfdaab8 100644
--- a/lib/http/client_example_test.go
+++ b/lib/http/client_example_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package http_test
import (
diff --git a/lib/http/client_options.go b/lib/http/client_options.go
index b3cd195e..fe8312df 100644
--- a/lib/http/client_options.go
+++ b/lib/http/client_options.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/client_request.go b/lib/http/client_request.go
index 48ffb52b..541fe73f 100644
--- a/lib/http/client_request.go
+++ b/lib/http/client_request.go
@@ -1,6 +1,5 @@
-// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/client_response.go b/lib/http/client_response.go
index 0606ac25..9bce7289 100644
--- a/lib/http/client_response.go
+++ b/lib/http/client_response.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package http
import "net/http"
diff --git a/lib/http/client_test.go b/lib/http/client_test.go
index 0aed66b4..dce74951 100644
--- a/lib/http/client_test.go
+++ b/lib/http/client_test.go
@@ -1,6 +1,5 @@
-// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/download_request.go b/lib/http/download_request.go
index 9776729f..3bdf79e7 100644
--- a/lib/http/download_request.go
+++ b/lib/http/download_request.go
@@ -1,6 +1,5 @@
-// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/endpoint_example_test.go b/lib/http/endpoint_example_test.go
index 9b4d9dce..abaf4fdc 100644
--- a/lib/http/endpoint_example_test.go
+++ b/lib/http/endpoint_example_test.go
@@ -1,6 +1,5 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/endpoint_request.go b/lib/http/endpoint_request.go
index 668b57c5..aa2e2989 100644
--- a/lib/http/endpoint_request.go
+++ b/lib/http/endpoint_request.go
@@ -1,6 +1,5 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2021 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/endpoint_response_example_test.go b/lib/http/endpoint_response_example_test.go
index e797cef0..c847da66 100644
--- a/lib/http/endpoint_response_example_test.go
+++ b/lib/http/endpoint_response_example_test.go
@@ -1,6 +1,5 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2021 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/endpoint_response_test.go b/lib/http/endpoint_response_test.go
index 06fead46..962ebc1b 100644
--- a/lib/http/endpoint_response_test.go
+++ b/lib/http/endpoint_response_test.go
@@ -1,6 +1,5 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2021 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/evaluator.go b/lib/http/evaluator.go
index b48a6907..8a45c0e1 100644
--- a/lib/http/evaluator.go
+++ b/lib/http/evaluator.go
@@ -1,6 +1,5 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/form_example_test.go b/lib/http/form_example_test.go
index 50994fa4..8eaafc38 100644
--- a/lib/http/form_example_test.go
+++ b/lib/http/form_example_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/form_test.go b/lib/http/form_test.go
index 014dbf35..4bd95fae 100644
--- a/lib/http/form_test.go
+++ b/lib/http/form_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/fs_handler.go b/lib/http/fs_handler.go
index 7dfca198..00eb1dc6 100644
--- a/lib/http/fs_handler.go
+++ b/lib/http/fs_handler.go
@@ -1,6 +1,5 @@
-// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info>
package http
@@ -18,7 +17,7 @@ import (
// This function return two values: the node `out` that is used to process the
// request and response; and the HTTP status code `statusCode` returned in
// response.
-//
+
// Non-zero status code indicates that the function already response
// to the request, and the server will return immediately.
//
diff --git a/lib/http/http.go b/lib/http/http.go
index 838e5106..0a3c22ba 100644
--- a/lib/http/http.go
+++ b/lib/http/http.go
@@ -1,6 +1,5 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
// Package http implement custom HTTP server with memory file system and
// simplified routing handler.
diff --git a/lib/http/http_example_test.go b/lib/http/http_example_test.go
index 367d1c75..0f087186 100644
--- a/lib/http/http_example_test.go
+++ b/lib/http/http_example_test.go
@@ -1,6 +1,5 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2021 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/http_test.go b/lib/http/http_test.go
index fa0c9975..8d3cac6f 100644
--- a/lib/http/http_test.go
+++ b/lib/http/http_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/multipart_form.go b/lib/http/multipart_form.go
index bd535cfe..758de8db 100644
--- a/lib/http/multipart_form.go
+++ b/lib/http/multipart_form.go
@@ -1,6 +1,5 @@
-// Copyright 2024, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/multipart_form_test.go b/lib/http/multipart_form_test.go
index c76ff0e5..e98b8ef2 100644
--- a/lib/http/multipart_form_test.go
+++ b/lib/http/multipart_form_test.go
@@ -1,6 +1,5 @@
-// Copyright 2024, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/range.go b/lib/http/range.go
index 2a7d3b54..5a5c0b0d 100644
--- a/lib/http/range.go
+++ b/lib/http/range.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/range_example_test.go b/lib/http/range_example_test.go
index 4a474c22..0f53b9b7 100644
--- a/lib/http/range_example_test.go
+++ b/lib/http/range_example_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package http_test
import (
diff --git a/lib/http/range_position.go b/lib/http/range_position.go
index 4f9624f0..a65773a8 100644
--- a/lib/http/range_position.go
+++ b/lib/http/range_position.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/range_position_example_test.go b/lib/http/range_position_example_test.go
index 8d8177c3..eded0e4b 100644
--- a/lib/http/range_position_example_test.go
+++ b/lib/http/range_position_example_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package http_test
import (
diff --git a/lib/http/range_position_test.go b/lib/http/range_position_test.go
index a4bc8429..8fc2afd4 100644
--- a/lib/http/range_position_test.go
+++ b/lib/http/range_position_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/range_test.go b/lib/http/range_test.go
index 5d3db3b9..1c43f7ec 100644
--- a/lib/http/range_test.go
+++ b/lib/http/range_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/request_method.go b/lib/http/request_method.go
index af0ade82..3606b551 100644
--- a/lib/http/request_method.go
+++ b/lib/http/request_method.go
@@ -1,6 +1,5 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/request_type.go b/lib/http/request_type.go
index 2a79b6df..b86adbc4 100644
--- a/lib/http/request_type.go
+++ b/lib/http/request_type.go
@@ -1,6 +1,5 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/request_type_test.go b/lib/http/request_type_test.go
index 0bb05f99..6b7711ce 100644
--- a/lib/http/request_type_test.go
+++ b/lib/http/request_type_test.go
@@ -1,6 +1,5 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2021 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/response.go b/lib/http/response.go
index 9525799d..6c3c3efb 100644
--- a/lib/http/response.go
+++ b/lib/http/response.go
@@ -1,6 +1,5 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/response_type_test.go b/lib/http/response_type_test.go
index efbc2114..1afb48d8 100644
--- a/lib/http/response_type_test.go
+++ b/lib/http/response_type_test.go
@@ -1,6 +1,5 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2021 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/route.go b/lib/http/route.go
index 5ba2f5b1..f2d462df 100644
--- a/lib/http/route.go
+++ b/lib/http/route.go
@@ -1,6 +1,5 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/server_benchmark_test.go b/lib/http/server_benchmark_test.go
index b9161d41..9959d2c7 100644
--- a/lib/http/server_benchmark_test.go
+++ b/lib/http/server_benchmark_test.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
package http
import (
diff --git a/lib/http/server_options.go b/lib/http/server_options.go
index 5ff15fb6..9ccb3e65 100644
--- a/lib/http/server_options.go
+++ b/lib/http/server_options.go
@@ -1,6 +1,5 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/sse_conn.go b/lib/http/sse_conn.go
index bb3e4f94..055a5793 100644
--- a/lib/http/sse_conn.go
+++ b/lib/http/sse_conn.go
@@ -1,6 +1,5 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/sse_endpoint.go b/lib/http/sse_endpoint.go
index c1bef50c..fa3c6c3d 100644
--- a/lib/http/sse_endpoint.go
+++ b/lib/http/sse_endpoint.go
@@ -1,6 +1,5 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/sse_endpoint_test.go b/lib/http/sse_endpoint_test.go
index ebc2036a..3a59ea27 100644
--- a/lib/http/sse_endpoint_test.go
+++ b/lib/http/sse_endpoint_test.go
@@ -1,6 +1,5 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 Shulhan <ms@kilabit.info>
package http
diff --git a/lib/http/sseclient/event.go b/lib/http/sseclient/event.go
index b4ceeba2..a7aa908c 100644
--- a/lib/http/sseclient/event.go
+++ b/lib/http/sseclient/event.go
@@ -1,6 +1,5 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 Shulhan <ms@kilabit.info>
package sseclient
diff --git a/lib/http/sseclient/sseclient_test.go b/lib/http/sseclient/sseclient_test.go
index 116ddbb5..43e89f62 100644
--- a/lib/http/sseclient/sseclient_test.go
+++ b/lib/http/sseclient/sseclient_test.go
@@ -1,6 +1,5 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 Shulhan <ms@kilabit.info>
package sseclient
diff --git a/lib/http/testdata/GenerateFormData_test.txt b/lib/http/testdata/GenerateFormData_test.txt
index b209e07f..c43f35dd 100644
--- a/lib/http/testdata/GenerateFormData_test.txt
+++ b/lib/http/testdata/GenerateFormData_test.txt
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
>>> file0
Content of file0.
diff --git a/lib/http/testdata/Server_HandleFS_test.txt b/lib/http/testdata/Server_HandleFS_test.txt
index 23dd32c9..1089121a 100644
--- a/lib/http/testdata/Server_HandleFS_test.txt
+++ b/lib/http/testdata/Server_HandleFS_test.txt
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info>
<<< TestServer_HandleFS/OnEmptyRoot
HTTP/1.1 200 OK
diff --git a/lib/http/testdata/auth/index.html.license b/lib/http/testdata/auth/index.html.license
new file mode 100644
index 00000000..e96cbd26
--- /dev/null
+++ b/lib/http/testdata/auth/index.html.license
@@ -0,0 +1,2 @@
+SPDX-License-Identifier: BSD-3-Clause
+SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
diff --git a/lib/http/testdata/auth/sub/index.html.license b/lib/http/testdata/auth/sub/index.html.license
new file mode 100644
index 00000000..e96cbd26
--- /dev/null
+++ b/lib/http/testdata/auth/sub/index.html.license
@@ -0,0 +1,2 @@
+SPDX-License-Identifier: BSD-3-Clause
+SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
diff --git a/lib/http/testdata/handleDelete_test.txt b/lib/http/testdata/handleDelete_test.txt
index da170afc..0a5bd214 100644
--- a/lib/http/testdata/handleDelete_test.txt
+++ b/lib/http/testdata/handleDelete_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+
Test data for handleDelete in Server.
<<< valid:request_body
diff --git a/lib/http/testdata/index.html.license b/lib/http/testdata/index.html.license
new file mode 100644
index 00000000..586206f5
--- /dev/null
+++ b/lib/http/testdata/index.html.license
@@ -0,0 +1,2 @@
+SPDX-License-Identifier: BSD-3-Clause
+SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
diff --git a/lib/http/testdata/index.js.license b/lib/http/testdata/index.js.license
new file mode 100644
index 00000000..586206f5
--- /dev/null
+++ b/lib/http/testdata/index.js.license
@@ -0,0 +1,2 @@
+SPDX-License-Identifier: BSD-3-Clause
+SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
diff --git a/lib/http/testdata/range/invalid_boundary_test.txt b/lib/http/testdata/range/invalid_boundary_test.txt
index 7fa7fdbb..a54ed1f9 100644
--- a/lib/http/testdata/range/invalid_boundary_test.txt
+++ b/lib/http/testdata/range/invalid_boundary_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> body
--zxcv
Content-Range: bytes 0-6/50
diff --git a/lib/http/testdata/range/missing_last_boundary_test.txt b/lib/http/testdata/range/missing_last_boundary_test.txt
index 8388f517..32d2e0d3 100644
--- a/lib/http/testdata/range/missing_last_boundary_test.txt
+++ b/lib/http/testdata/range/missing_last_boundary_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> body
--zxcv
Content-Range: bytes 10-15/50
diff --git a/lib/http/testdata/range/ok_test.txt b/lib/http/testdata/range/ok_test.txt
index 3e1f22d9..1c4ed804 100644
--- a/lib/http/testdata/range/ok_test.txt
+++ b/lib/http/testdata/range/ok_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> body
--zxcv
Content-Range: bytes 10-15/50
diff --git a/lib/http/testdata/server/head_range_test.txt b/lib/http/testdata/server/head_range_test.txt
index 5376d7d1..f54314cc 100644
--- a/lib/http/testdata/server/head_range_test.txt
+++ b/lib/http/testdata/server/head_range_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
<<< http_headers
HTTP/1.1 200 OK
Accept-Ranges: bytes
diff --git a/lib/http/testdata/server/range/empty_test.txt b/lib/http/testdata/server/range/empty_test.txt
index 620f7a10..f86fbfed 100644
--- a/lib/http/testdata/server/range/empty_test.txt
+++ b/lib/http/testdata/server/range/empty_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> header_range
bytes=
diff --git a/lib/http/testdata/server/range/fail_416_test.txt b/lib/http/testdata/server/range/fail_416_test.txt
index bac7bc87..64ef4e0b 100644
--- a/lib/http/testdata/server/range/fail_416_test.txt
+++ b/lib/http/testdata/server/range/fail_416_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> header_range
bytes=50-
diff --git a/lib/http/testdata/server/range/fail_unit_test.txt b/lib/http/testdata/server/range/fail_unit_test.txt
index 7ef5abe8..2843bfa8 100644
--- a/lib/http/testdata/server/range/fail_unit_test.txt
+++ b/lib/http/testdata/server/range/fail_unit_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> header_range
myunit=10-15
diff --git a/lib/http/testdata/server/range/multipart_test.txt b/lib/http/testdata/server/range/multipart_test.txt
index bb90ca95..8be27dd6 100644
--- a/lib/http/testdata/server/range/multipart_test.txt
+++ b/lib/http/testdata/server/range/multipart_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> header_range
bytes=0-5,10-15,-10
diff --git a/lib/http/testdata/server/range/single_test.txt b/lib/http/testdata/server/range/single_test.txt
index 4f896957..ba483341 100644
--- a/lib/http/testdata/server/range/single_test.txt
+++ b/lib/http/testdata/server/range/single_test.txt
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+
>>> header_range
bytes=10-15
diff --git a/lib/http/testdata/server/range_big_test.txt b/lib/http/testdata/server/range_big_test.txt
index 8d47b707..a9b8dc22 100644
--- a/lib/http/testdata/server/range_big_test.txt
+++ b/lib/http/testdata/server/range_big_test.txt
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
<<< HEAD /big
HTTP/1.1 200 OK