├── HTTPResponseMessage.sln ├── HTTPResponseMessage.v12.suo ├── HTTPResponseMessage ├── App_Start │ └── WebApiConfig.cs ├── Controllers │ └── ServiceController.cs ├── Global.asax ├── Global.asax.cs ├── HTTPResponseMessage.csproj ├── HTTPResponseMessage.csproj.user ├── Properties │ └── AssemblyInfo.cs ├── Web.Debug.config ├── Web.Release.config ├── Web.config ├── bin │ ├── HTTPResponseMessage.dll │ ├── HTTPResponseMessage.dll.config │ ├── HTTPResponseMessage.pdb │ ├── Newtonsoft.Json.dll │ ├── Newtonsoft.Json.xml │ ├── System.Net.Http.Formatting.dll │ ├── System.Net.Http.Formatting.xml │ ├── System.Web.Http.WebHost.dll │ ├── System.Web.Http.WebHost.xml │ ├── System.Web.Http.dll │ └── System.Web.Http.xml ├── obj │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── HTTPResponseMessage.csproj.FileListAbsolute.txt │ │ ├── HTTPResponseMessage.csprojResolveAssemblyReference.cache │ │ ├── HTTPResponseMessage.dll │ │ ├── HTTPResponseMessage.pdb │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs └── packages.config ├── README.md └── packages ├── Microsoft.AspNet.WebApi.5.2.2 └── Microsoft.AspNet.WebApi.5.2.2.nupkg ├── Microsoft.AspNet.WebApi.Client.5.2.2 ├── Microsoft.AspNet.WebApi.Client.5.2.2.nupkg └── lib │ ├── net45 │ ├── System.Net.Http.Formatting.dll │ └── System.Net.Http.Formatting.xml │ └── portable-wp8%2Bnetcore45%2Bnet45%2Bwp81%2Bwpa81 │ ├── System.Net.Http.Formatting.dll │ └── System.Net.Http.Formatting.xml ├── Microsoft.AspNet.WebApi.Core.5.2.2 ├── Content │ └── web.config.transform ├── Microsoft.AspNet.WebApi.Core.5.2.2.nupkg └── lib │ └── net45 │ ├── System.Web.Http.dll │ └── System.Web.Http.xml ├── Microsoft.AspNet.WebApi.WebHost.5.2.2 ├── Microsoft.AspNet.WebApi.WebHost.5.2.2.nupkg └── lib │ └── net45 │ ├── System.Web.Http.WebHost.dll │ └── System.Web.Http.WebHost.xml ├── Newtonsoft.Json.6.0.4 ├── Newtonsoft.Json.6.0.4.nupkg ├── lib │ ├── net20 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── net35 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── net40 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── net45 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── netcore45 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ ├── portable-net40%2Bsl5%2Bwp80%2Bwin8%2Bwpa81 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml │ └── portable-net45%2Bwp80%2Bwin8%2Bwpa81 │ │ ├── Newtonsoft.Json.dll │ │ └── Newtonsoft.Json.xml └── tools │ └── install.ps1 └── repositories.config /HTTPResponseMessage.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HTTPResponseMessage", "HTTPResponseMessage\HTTPResponseMessage.csproj", "{E63AE480-9196-47AE-9B02-E499FF3A98A6}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E63AE480-9196-47AE-9B02-E499FF3A98A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {E63AE480-9196-47AE-9B02-E499FF3A98A6}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {E63AE480-9196-47AE-9B02-E499FF3A98A6}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {E63AE480-9196-47AE-9B02-E499FF3A98A6}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /HTTPResponseMessage.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage.v12.suo -------------------------------------------------------------------------------- /HTTPResponseMessage/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web.Http; 5 | 6 | namespace HTTPResponseMessage 7 | { 8 | public static class WebApiConfig 9 | { 10 | public static void Register(HttpConfiguration config) 11 | { 12 | // Web API configuration and services 13 | 14 | // Web API routes 15 | config.MapHttpAttributeRoutes(); 16 | 17 | config.Routes.MapHttpRoute( 18 | name: "DefaultApi", 19 | routeTemplate: "api/{controller}/{id}", 20 | defaults: new { id = RouteParameter.Optional } 21 | ); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Controllers/ServiceController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Web.Http; 7 | 8 | namespace HTTPResponseMessage.Controllers 9 | { 10 | public class ServiceController : ApiController 11 | { 12 | static List serviceData = LoadService(); 13 | 14 | public static List LoadService() 15 | { 16 | return new List() { "Mobile Recharge", "Bill Payment" }; 17 | } 18 | // GET: api/Service 19 | public HttpResponseMessage Get() 20 | { 21 | return Request.CreateResponse>(HttpStatusCode.OK,serviceData); 22 | } 23 | 24 | // GET: api/Service/5 25 | public HttpResponseMessage Get(int id) 26 | { 27 | if (serviceData.Count > id) 28 | return Request.CreateResponse(HttpStatusCode.OK, serviceData[id]); 29 | else 30 | return Request.CreateErrorResponse(HttpStatusCode.NotFound, "Item Not Found"); 31 | } 32 | 33 | // POST: api/Service 34 | public HttpResponseMessage Post([FromBody]string value) 35 | { 36 | serviceData.Add(value); 37 | return Request.CreateResponse(HttpStatusCode.Created, "Item Added Successfully"); 38 | } 39 | 40 | // PUT: api/Service/5 41 | public HttpResponseMessage Put(int id, [FromBody]string value) 42 | { 43 | serviceData[id] = value; 44 | return Request.CreateResponse(HttpStatusCode.OK, "Item Updated Successfully"); 45 | } 46 | 47 | // DELETE: api/Service/5 48 | public HttpResponseMessage Delete(int id) 49 | { 50 | serviceData.RemoveAt(id); 51 | return Request.CreateResponse(HttpStatusCode.OK, "Item Deleted Successfully"); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="HTTPResponseMessage.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Routing; 7 | 8 | namespace HTTPResponseMessage 9 | { 10 | public class WebApiApplication : System.Web.HttpApplication 11 | { 12 | protected void Application_Start() 13 | { 14 | GlobalConfiguration.Configure(WebApiConfig.Register); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /HTTPResponseMessage/HTTPResponseMessage.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | 8 | 9 | 2.0 10 | {E63AE480-9196-47AE-9B02-E499FF3A98A6} 11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} 12 | Library 13 | Properties 14 | HTTPResponseMessage 15 | HTTPResponseMessage 16 | v4.5.1 17 | true 18 | 19 | 20 | 21 | 22 | 23 | 24 | true 25 | full 26 | false 27 | bin\ 28 | DEBUG;TRACE 29 | prompt 30 | 4 31 | 32 | 33 | pdbonly 34 | true 35 | bin\ 36 | TRACE 37 | prompt 38 | 4 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | ..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll 63 | 64 | 65 | ..\packages\Microsoft.AspNet.WebApi.Client.5.2.2\lib\net45\System.Net.Http.Formatting.dll 66 | 67 | 68 | ..\packages\Microsoft.AspNet.WebApi.Core.5.2.2\lib\net45\System.Web.Http.dll 69 | 70 | 71 | ..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.2\lib\net45\System.Web.Http.WebHost.dll 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | Global.asax 83 | 84 | 85 | 86 | 87 | 88 | 89 | Web.config 90 | 91 | 92 | Web.config 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 10.0 101 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | True 111 | True 112 | 29475 113 | / 114 | http://localhost:29475/ 115 | False 116 | False 117 | 118 | 119 | False 120 | 121 | 122 | 123 | 124 | 131 | -------------------------------------------------------------------------------- /HTTPResponseMessage/HTTPResponseMessage.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 600 5 | True 6 | False 7 | True 8 | 9 | False 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | CurrentPage 18 | True 19 | False 20 | False 21 | False 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | True 31 | True 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("HTTPResponseMessage")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("HTTPResponseMessage")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("554d6d4a-44d4-4dad-8c58-d90bd7f742d3")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /HTTPResponseMessage/Web.config: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/HTTPResponseMessage.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/bin/HTTPResponseMessage.dll -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/HTTPResponseMessage.dll.config: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/HTTPResponseMessage.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/bin/HTTPResponseMessage.pdb -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/bin/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/bin/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/System.Web.Http.WebHost.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/bin/System.Web.Http.WebHost.dll -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/System.Web.Http.WebHost.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | System.Web.Http.WebHost 5 | 6 | 7 | 8 | Provides a global for ASP.NET applications. 9 | 10 | 11 | 12 | 13 | 14 | Gets the global . 15 | 16 | 17 | Extension methods for 18 | 19 | 20 | Maps the specified route template. 21 | A reference to the mapped route. 22 | A collection of routes for the application. 23 | The name of the route to map. 24 | The route template for the route. 25 | 26 | 27 | Maps the specified route template and sets default route. 28 | A reference to the mapped route. 29 | A collection of routes for the application. 30 | The name of the route to map. 31 | The route template for the route. 32 | An object that contains default route values. 33 | 34 | 35 | Maps the specified route template and sets default route values and constraints. 36 | A reference to the mapped route. 37 | A collection of routes for the application. 38 | The name of the route to map. 39 | The route template for the route. 40 | An object that contains default route values. 41 | A set of expressions that specify values for routeTemplate. 42 | 43 | 44 | Maps the specified route template and sets default route values, constraints, and end-point message handler. 45 | A reference to the mapped route. 46 | A collection of routes for the application. 47 | The name of the route to map. 48 | The route template for the route. 49 | An object that contains default route values. 50 | A set of expressions that specify values for routeTemplate. 51 | The handler to which the request will be dispatched. 52 | 53 | 54 | A that passes ASP.NET requests into the pipeline and write the result back. 55 | 56 | 57 | Initializes a new instance of the class. 58 | The route data. 59 | 60 | 61 | Initializes a new instance of the class. 62 | The route data. 63 | The message handler to dispatch requests to. 64 | 65 | 66 | Provides code that handles an asynchronous task 67 | The asynchronous task. 68 | The HTTP context. 69 | 70 | 71 | A that returns instances of that can pass requests to a given instance. 72 | 73 | 74 | Initializes a new instance of the class. 75 | 76 | 77 | Provides the object that processes the request. 78 | An object that processes the request. 79 | An object that encapsulates information about the request. 80 | 81 | 82 | Gets the singleton instance. 83 | 84 | 85 | Provides the object that processes the request. 86 | An object that processes the request. 87 | An object that encapsulates information about the request. 88 | 89 | 90 | Provides a registration point for the simple membership pre-application start code. 91 | 92 | 93 | Registers the simple membership pre-application start code. 94 | 95 | 96 | Represents the web host buffer policy selector. 97 | 98 | 99 | Initializes a new instance of the class. 100 | 101 | 102 | Gets a value that indicates whether the host should buffer the entity body of the HTTP request. 103 | true if buffering should be used; otherwise a streamed request should be used. 104 | The host context. 105 | 106 | 107 | Uses a buffered output stream for the web host. 108 | A buffered output stream. 109 | The response. 110 | 111 | 112 | Provides the catch blocks used within this assembly. 113 | 114 | 115 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 116 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 117 | 118 | 119 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 120 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 121 | 122 | 123 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 124 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 125 | 126 | 127 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 128 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 129 | 130 | 131 | Gets the label for the catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 132 | The catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 133 | 134 | 135 | -------------------------------------------------------------------------------- /HTTPResponseMessage/bin/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/bin/System.Web.Http.dll -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/HTTPResponseMessage.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\obj\Debug\HTTPResponseMessage.csprojResolveAssemblyReference.cache 2 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\HTTPResponseMessage.dll.config 3 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\HTTPResponseMessage.dll 4 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\HTTPResponseMessage.pdb 5 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\Newtonsoft.Json.dll 6 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\System.Net.Http.Formatting.dll 7 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\System.Web.Http.dll 8 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\System.Web.Http.WebHost.dll 9 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\Newtonsoft.Json.xml 10 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\System.Net.Http.Formatting.xml 11 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\System.Web.Http.xml 12 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\bin\System.Web.Http.WebHost.xml 13 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\obj\Debug\HTTPResponseMessage.dll 14 | F:\AKKI_DEV\RND\WebAPI\HTTPResponseMessage\HTTPResponseMessage\obj\Debug\HTTPResponseMessage.pdb 15 | -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/HTTPResponseMessage.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/HTTPResponseMessage.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/HTTPResponseMessage.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/HTTPResponseMessage.dll -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/HTTPResponseMessage.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/HTTPResponseMessage.pdb -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /HTTPResponseMessage/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/HTTPResponseMessage/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /HTTPResponseMessage/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WebAPI-HTTPResponseMessage 2 | 3 | https://www.c-sharpcorner.com/article/all-about-api-http-response-message-part-three/ 4 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.5.2.2/Microsoft.AspNet.WebApi.5.2.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.5.2.2/Microsoft.AspNet.WebApi.5.2.2.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Client.5.2.2/Microsoft.AspNet.WebApi.Client.5.2.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.Client.5.2.2/Microsoft.AspNet.WebApi.Client.5.2.2.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Client.5.2.2/lib/net45/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.Client.5.2.2/lib/net45/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Client.5.2.2/lib/portable-wp8%2Bnetcore45%2Bnet45%2Bwp81%2Bwpa81/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.Client.5.2.2/lib/portable-wp8%2Bnetcore45%2Bnet45%2Bwp81%2Bwpa81/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Core.5.2.2/Content/web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Core.5.2.2/Microsoft.AspNet.WebApi.Core.5.2.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.Core.5.2.2/Microsoft.AspNet.WebApi.Core.5.2.2.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Core.5.2.2/lib/net45/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.Core.5.2.2/lib/net45/System.Web.Http.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.WebHost.5.2.2/Microsoft.AspNet.WebApi.WebHost.5.2.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.WebHost.5.2.2/Microsoft.AspNet.WebApi.WebHost.5.2.2.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.WebHost.5.2.2/lib/net45/System.Web.Http.WebHost.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Microsoft.AspNet.WebApi.WebHost.5.2.2/lib/net45/System.Web.Http.WebHost.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.WebHost.5.2.2/lib/net45/System.Web.Http.WebHost.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | System.Web.Http.WebHost 5 | 6 | 7 | 8 | Provides a global for ASP.NET applications. 9 | 10 | 11 | 12 | 13 | 14 | Gets the global . 15 | 16 | 17 | Extension methods for 18 | 19 | 20 | Maps the specified route template. 21 | A reference to the mapped route. 22 | A collection of routes for the application. 23 | The name of the route to map. 24 | The route template for the route. 25 | 26 | 27 | Maps the specified route template and sets default route. 28 | A reference to the mapped route. 29 | A collection of routes for the application. 30 | The name of the route to map. 31 | The route template for the route. 32 | An object that contains default route values. 33 | 34 | 35 | Maps the specified route template and sets default route values and constraints. 36 | A reference to the mapped route. 37 | A collection of routes for the application. 38 | The name of the route to map. 39 | The route template for the route. 40 | An object that contains default route values. 41 | A set of expressions that specify values for routeTemplate. 42 | 43 | 44 | Maps the specified route template and sets default route values, constraints, and end-point message handler. 45 | A reference to the mapped route. 46 | A collection of routes for the application. 47 | The name of the route to map. 48 | The route template for the route. 49 | An object that contains default route values. 50 | A set of expressions that specify values for routeTemplate. 51 | The handler to which the request will be dispatched. 52 | 53 | 54 | A that passes ASP.NET requests into the pipeline and write the result back. 55 | 56 | 57 | Initializes a new instance of the class. 58 | The route data. 59 | 60 | 61 | Initializes a new instance of the class. 62 | The route data. 63 | The message handler to dispatch requests to. 64 | 65 | 66 | Provides code that handles an asynchronous task 67 | The asynchronous task. 68 | The HTTP context. 69 | 70 | 71 | A that returns instances of that can pass requests to a given instance. 72 | 73 | 74 | Initializes a new instance of the class. 75 | 76 | 77 | Provides the object that processes the request. 78 | An object that processes the request. 79 | An object that encapsulates information about the request. 80 | 81 | 82 | Gets the singleton instance. 83 | 84 | 85 | Provides the object that processes the request. 86 | An object that processes the request. 87 | An object that encapsulates information about the request. 88 | 89 | 90 | Provides a registration point for the simple membership pre-application start code. 91 | 92 | 93 | Registers the simple membership pre-application start code. 94 | 95 | 96 | Represents the web host buffer policy selector. 97 | 98 | 99 | Initializes a new instance of the class. 100 | 101 | 102 | Gets a value that indicates whether the host should buffer the entity body of the HTTP request. 103 | true if buffering should be used; otherwise a streamed request should be used. 104 | The host context. 105 | 106 | 107 | Uses a buffered output stream for the web host. 108 | A buffered output stream. 109 | The response. 110 | 111 | 112 | Provides the catch blocks used within this assembly. 113 | 114 | 115 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 116 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 117 | 118 | 119 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 120 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 121 | 122 | 123 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 124 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 125 | 126 | 127 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 128 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 129 | 130 | 131 | Gets the label for the catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 132 | The catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 133 | 134 | 135 | -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/Newtonsoft.Json.6.0.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/Newtonsoft.Json.6.0.4.nupkg -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/net20/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/net20/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/net35/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/net35/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/net40/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/net40/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/net45/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/net45/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/netcore45/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/netcore45/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/portable-net40%2Bsl5%2Bwp80%2Bwin8%2Bwpa81/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/portable-net40%2Bsl5%2Bwp80%2Bwin8%2Bwpa81/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/lib/portable-net45%2Bwp80%2Bwin8%2Bwpa81/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akshayblevel/WebAPI-HTTPResponseMessage/db3879d4ea7334ab586dc78f77664e2fb4eba4a0/packages/Newtonsoft.Json.6.0.4/lib/portable-net45%2Bwp80%2Bwin8%2Bwpa81/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.6.0.4/tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | # open json.net splash page on package install 4 | # don't open if json.net is installed as a dependency 5 | 6 | try 7 | { 8 | $url = "http://james.newtonking.com/json" 9 | $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) 10 | 11 | if ($dte2.ActiveWindow.Caption -eq "Package Manager Console") 12 | { 13 | # user is installing from VS NuGet console 14 | # get reference to the window, the console host and the input history 15 | # show webpage if "install-package newtonsoft.json" was last input 16 | 17 | $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]) 18 | 19 | $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor ` 20 | [System.Reflection.BindingFlags]::NonPublic) 21 | 22 | $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1 23 | if ($prop -eq $null) { return } 24 | 25 | $hostInfo = $prop.GetValue($consoleWindow) 26 | if ($hostInfo -eq $null) { return } 27 | 28 | $history = $hostInfo.WpfConsole.InputHistory.History 29 | 30 | $lastCommand = $history | select -last 1 31 | 32 | if ($lastCommand) 33 | { 34 | $lastCommand = $lastCommand.Trim().ToLower() 35 | if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json")) 36 | { 37 | $dte2.ItemOperations.Navigate($url) | Out-Null 38 | } 39 | } 40 | } 41 | else 42 | { 43 | # user is installing from VS NuGet dialog 44 | # get reference to the window, then smart output console provider 45 | # show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation 46 | 47 | $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor ` 48 | [System.Reflection.BindingFlags]::NonPublic) 49 | $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor ` 50 | [System.Reflection.BindingFlags]::NonPublic) 51 | if ($instanceField -eq $null -or $consoleField -eq $null) { return } 52 | 53 | $instance = $instanceField.GetValue($null) 54 | if ($instance -eq $null) { return } 55 | 56 | $consoleProvider = $consoleField.GetValue($instance) 57 | if ($consoleProvider -eq $null) { return } 58 | 59 | $console = $consoleProvider.CreateOutputConsole($false) 60 | 61 | $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor ` 62 | [System.Reflection.BindingFlags]::NonPublic) 63 | if ($messagesField -eq $null) { return } 64 | 65 | $messages = $messagesField.GetValue($console) 66 | if ($messages -eq $null) { return } 67 | 68 | $operations = $messages -split "==============================" 69 | 70 | $lastOperation = $operations | select -last 1 71 | 72 | if ($lastOperation) 73 | { 74 | $lastOperation = $lastOperation.ToLower() 75 | 76 | $lines = $lastOperation -split "`r`n" 77 | 78 | $installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1 79 | 80 | if ($installMatch) 81 | { 82 | $dte2.ItemOperations.Navigate($url) | Out-Null 83 | } 84 | } 85 | } 86 | } 87 | catch 88 | { 89 | # stop potential errors from bubbling up 90 | # worst case the splash page won't open 91 | } 92 | 93 | # yolo -------------------------------------------------------------------------------- /packages/repositories.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------