function info_collections(request, response) {
    let body = "Error.";
    switch(request.method) {
      case "GET":
        body = JSON.stringify(collections);
        break;
      default:
        throw "Non-GET on info_collections.";
    }

    response.setHeader("Content-Type", "application/json");
    response.setHeader("X-Weave-Timestamp",
                       "" + new_timestamp(),
                       false);
    response.setStatusLine(request.httpVersion, 200, "OK");
    response.bodyOutputStream.write(body, body.length);
  }
/*
   * Return the info/collections object.
   */
Return the info/collections object.
Return the info / collections object .
function info_collections(request, response) {
    let body = "Error.";
    switch(request.method) {
      case "GET":
        body = JSON.stringify(collections);
        break;
      default:
        throw "Non-GET on info_collections.";
    }
    response.setHeader("Content-Type", "application/json");
    response.setHeader("X-Weave-Timestamp",
                       "" + new_timestamp(),
                       false);
    response.setStatusLine(request.httpVersion, 200, "OK");
    response.bodyOutputStream.write(body, body.length);
  }
function info_collections ( request , response ) { let body = "Error." ; switch ( request . method ) { case "GET" : body = JSON . stringify ( collections ) ; break ; default : throw "Non-GET on info_collections." ; } response . setHeader ( "Content-Type" , "application/json" ) ; response . setHeader ( "X-Weave-Timestamp" , "" + new_timestamp ( ) , false ) ; response . setStatusLine ( request . httpVersion , 200 , "OK" ) ; response . bodyOutputStream . write ( body , body . length ) ; }
Return the info/collections object.
Return the info / collections object .