if ((method === 'POST' || method === 'PUT') && postBody != null && postBody !== '') {
      request.write(postBody)
    }