aboutsummaryrefslogblamecommitdiff
path: root/http_handle_gc.go
blob: 3f7717cfed73a527d81b3f08f4dc0aebd21602b6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                               
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>

package main

import (
	"net/http"
	"runtime"
)

func handle_gc(w http.ResponseWriter, r *http.Request, params map[string]any) {
	runtime.GC()
	http.Redirect(w, r, "/", http.StatusSeeOther)
}