{
  "type": "module",
  "source": "doc/api/api-mockcallhistorylog.md",
  "modules": [
    {
      "textRaw": "Class: MockCallHistoryLog",
      "name": "class:_mockcallhistorylog",
      "type": "module",
      "desc": "<p>Access to an instance with :</p>\n<pre><code class=\"language-js\">const mockAgent = new MockAgent({ enableCallHistory: true })\nmockAgent.getCallHistory()?.firstCall()\n</code></pre>",
      "modules": [
        {
          "textRaw": "class properties",
          "name": "class_properties",
          "type": "module",
          "desc": "<ul>\n<li>body <code>mockAgent.getCallHistory()?.firstCall()?.body</code></li>\n<li>headers <code>mockAgent.getCallHistory()?.firstCall()?.headers</code> an object</li>\n<li>method <code>mockAgent.getCallHistory()?.firstCall()?.method</code> a string</li>\n<li>fullUrl <code>mockAgent.getCallHistory()?.firstCall()?.fullUrl</code> a string containing the protocol, origin, path, query and hash</li>\n<li>origin <code>mockAgent.getCallHistory()?.firstCall()?.origin</code> a string containing the protocol and the host</li>\n<li>headers <code>mockAgent.getCallHistory()?.firstCall()?.headers</code> an object</li>\n<li>path <code>mockAgent.getCallHistory()?.firstCall()?.path</code> a string always starting with <code>/</code></li>\n<li>searchParams <code>mockAgent.getCallHistory()?.firstCall()?.searchParams</code> an object</li>\n<li>protocol <code>mockAgent.getCallHistory()?.firstCall()?.protocol</code> a string (<code>https:</code>)</li>\n<li>host <code>mockAgent.getCallHistory()?.firstCall()?.host</code> a string</li>\n<li>port <code>mockAgent.getCallHistory()?.firstCall()?.port</code> an empty string or a string containing numbers</li>\n<li>hash <code>mockAgent.getCallHistory()?.firstCall()?.hash</code> an empty string or a string starting with <code>#</code></li>\n</ul>",
          "displayName": "class properties"
        },
        {
          "textRaw": "class methods",
          "name": "class_methods",
          "type": "module",
          "modules": [
            {
              "textRaw": "toMap",
              "name": "tomap",
              "type": "module",
              "desc": "<p>Returns a Map instance</p>\n<pre><code class=\"language-js\">mockAgent.getCallHistory()?.firstCall()?.toMap()?.get('hash')\n// #hash\n</code></pre>",
              "displayName": "toMap"
            },
            {
              "textRaw": "toString",
              "name": "tostring",
              "type": "module",
              "desc": "<p>Returns a string computed with any class property name and value pair</p>\n<pre><code class=\"language-js\">mockAgent.getCallHistory()?.firstCall()?.toString()\n// protocol->https:|host->localhost:4000|port->4000|origin->https://localhost:4000|path->/endpoint|hash->#here|searchParams->{\"query\":\"value\"}|fullUrl->https://localhost:4000/endpoint?query=value#here|method->PUT|body->\"{ \"data\": \"hello\" }\"|headers->{\"content-type\":\"application/json\"}\n</code></pre>",
              "displayName": "toString"
            }
          ],
          "displayName": "class methods"
        }
      ],
      "displayName": "Class: MockCallHistoryLog"
    }
  ]
}