发明名称 Web API framework
摘要 Embodiments allow developers to use HTTP message abstractions inline within their Web API methods to directly access and manipulate HTTP request and response messages. A hosting layer is provided for in-process, in-memory and network-based services. Message handlers and operational handlers may be combined to create a message channel for asynchronous manipulations of the HTTP requests and response. A formatter may be used on the server or client for consuming HTTP and providing desired media types.
申请公布号 US8918452(B2) 申请公布日期 2014.12.23
申请号 US201113247700 申请日期 2011.09.28
申请人 Microsoft Corporation 发明人 Nielsen Henrik Frystyk;Block Glenn;Tombaugh Randall;Cain Ronald A.;Ge HongMei;Corradini Alexander
分类号 G06F15/16;G06F9/54;H04L29/08 主分类号 G06F15/16
代理机构 代理人 Tabor Benjamin;Drakos Katherine;Minhas Micky
主权项 1. A method, comprising: sending an original HTTP request from a client application having a client domain to a server application having a server domain that is different than the client domain; selecting one of a plurality of formatters located on a server, the selected formatter identified based upon content of the original HTTP request; creating a modified HTTP request in the selected formatter using content in the original HTTP request to populate media types in the modified HTTP request, the media types associated with the server domain of the server application; and creating, in the selected formatter, an HTTP response to be consumed by the client application, the HTTP response formatted for the client domain based upon content in a server-domain response generated by the server application; wherein the client application and server application are separate components of a single application running on a single device executing an operating system, and wherein creating the modified HTTP request occurs via an in-memory channel without using the operating system's network stack.
地址 Redmond WA US