You are reading the documentation for connect v1, which is no longer the latest version. Switch to connect v2PATHNAME_HEADER_NAMEPATHNAME_HEADER_NAME = "x-pathname"