code: private void listObjects(WebContext ctx, Bucket bucket) {
          int maxKeys = ctx.get("max-keys").asInt(1000);
          String marker = ctx.get("marker").asString();
          String prefix = ctx.get("prefix").asString();
  
          Response response = ctx.respondWith();
          response.setHeader(HTTP_HEADER_NAME_CONTENT_TYPE, CONTENT_TYPE_XML);
  
          bucket.outputObjects(response.xml(), maxKeys, marker, prefix);
      }
docs: Handles GET /bucket
  
  @param ctx    the context describing the current request
  @param bucket the bucket of which the contents should be listed