{
    "content": [
        {
            "type": "text",
            "text": "# URI::WithBase (perldoc)\n\n## NAME\n\nURI::WithBase - URIs which remember their base\n\n## SYNOPSIS\n\n$u1 = URI::WithBase->new($str, $base);\n$u2 = $u1->abs;\n$base = $u1->base;\n$u1->base( $newbase )\n\n## DESCRIPTION\n\nThis module provides the \"URI::WithBase\" class. Objects of this class are like \"URI\" objects,\nbut can keep their base too. The base represents the context where this URI was found and can be\nused to absolutize or relativize the URI. All the methods described in URI are supported for\n\"URI::WithBase\" objects.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "URI::WithBase",
        "section": "",
        "mode": "perldoc",
        "summary": "URI::WithBase - URIs which remember their base",
        "synopsis": "$u1 = URI::WithBase->new($str, $base);\n$u2 = $u1->abs;\n$base = $u1->base;\n$u1->base( $newbase )",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 24,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "URI::WithBase - URIs which remember their base\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "$u1 = URI::WithBase->new($str, $base);\n$u2 = $u1->abs;\n\n$base = $u1->base;\n$u1->base( $newbase )\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides the \"URI::WithBase\" class. Objects of this class are like \"URI\" objects,\nbut can keep their base too. The base represents the context where this URI was found and can be\nused to absolutize or relativize the URI. All the methods described in URI are supported for\n\"URI::WithBase\" objects.\n\nThe methods provided in addition to or modified from those of \"URI\" are:\n\n$uri = URI::WithBase->new($str, [$base])\nThe constructor takes an optional base URI as the second argument. If provided, this\nargument initializes the base attribute.\n\n$uri->base( [$newbase] )\nCan be used to get or set the value of the base attribute. The return value, which is the\nold value, is a URI object or \"undef\".\n\n$uri->abs( [$baseuri] )\nThe $baseuri argument is now made optional as the object carries its base with it. A new\nobject is returned even if $uri is already absolute (while plain URI objects simply return\nthemselves in that case).\n\n$uri->rel( [$baseuri] )\nThe $baseuri argument is now made optional as the object carries its base with it. A new\nobject is always returned.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "URI\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 1998-2002 Gisle Aas.\n",
                "subsections": []
            }
        }
    }
}