code: public NanoHTTPD.Response getResponse() {
          NanoHTTPD.Response response = null;
          // create response
          try {
              if (this.response != null) {
                  response = this.response;
              } else if (view != null) {
                  response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, "text/html", view.renderInLayout());
              } else if (!EdenUtils.isEmpty(content)) {
                  response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, "text/html", content);
              } else if (!EdenUtils.isEmpty(json)) {
                  response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, "application/json", json);
              } else if (contentStream != null) {
                  response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, mimeType, contentStream, contentStream.available());
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
          if (response == null) {
              response = NanoHTTPD.newFixedLengthResponse("No Data");
          }
          // set headers
          response.addHeader("Access-Control-Allow-Origin", "*");
          if (headers != null) {
              for (String header : headers.keySet()) {
                  response.addHeader(header, headers.get(header));
              }
          }
          // set status
          if (status != null) {
              response.setStatus(status);
          }
          // set mime type
          if (mimeType != null) {
              response.setMimeType(mimeType);
          }
          return response;
      }
docs: ----------------------------------------------------------------------------------------------------------------------