func RespondPrivateEnvInHeader(cx *goweb.Context, Envs map[string]string) (err error) { env_stream, err := json.Marshal(Envs) if err != nil { return err } cx.ResponseWriter.Header().Set("Privateenv", string(env_stream[:])) cx.Respond(nil, http.StatusOK, nil, cx) return }
func RespondTokenInHeader(cx *goweb.Context, token string) { cx.ResponseWriter.Header().Set("Datatoken", token) cx.Respond(nil, http.StatusOK, nil, cx) return }