INNER CODE UNIT · Go

ListRows

cryptag/cryptag · servers/cryptag-webserver/main.go:240

func ListRows(w http.ResponseWriter, req *http.Request) {
	if err := req.ParseForm(); err != nil {
		help.WriteError(w, "Error parsing URL parameters: "+err.Error(),
			http.StatusBadRequest)
		return
	}

	randtags, err := parseTags(req.Form["tags"])
	if err != nil {
		help.WriteError(w, err.Error(), http.StatusBadRequest)
		return
	}

	includeFileBody := false
	rows, err := filesystem.RowsByTags(randtags, includeFileBody)
	if err != nil {
		if err == types.ErrRowsNotFound {
			w.WriteHeader(http.StatusNotFound)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…