[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eIContextWrapper\u003c/code\u003e interface within the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace, which is part of the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIContextWrapper\u003c/code\u003e interface is designed to wrap an HTTP context, offering methods to retrieve details about an HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIContextWrapper\u003c/code\u003e interface includes methods for obtaining the HTTP method (\u003ccode\u003eGetHttpMethod()\u003c/code\u003e), the HTTP request URI (\u003ccode\u003eGetUri()\u003c/code\u003e), and the user agent (\u003ccode\u003eGetUserAgent()\u003c/code\u003e), each of which may return null values.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists the available versions of \u003ccode\u003eIContextWrapper\u003c/code\u003e, with the latest being 5.2.0, followed by previous versions including 5.1.0, 5.0.0, 4.4.0, and 4.3.1.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Interface IContextWrapper (5.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.IContextWrapper)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.IContextWrapper)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.IContextWrapper)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.IContextWrapper)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.IContextWrapper)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.IContextWrapper) \n\n public interface IContextWrapper\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common interface IContextWrapper.\n\nWraps an HTTP context.\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.Common](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.Common.dll\n\nMethods\n-------\n\n### GetHttpMethod()\n\n string GetHttpMethod()\n\nGets the HTTP method. GET, POST, etc. Can be null.\n\n### GetUri()\n\n string GetUri()\n\nGets the HTTP request Uri. Can be null.\n\n### GetUserAgent()\n\n string GetUserAgent()\n\nGets the user agent. Can be null."]]