Chapter 3: Web API Clients
第3章 Web API客戶端
本文引自:http://www.asp.net/web-api/overview/web-api-clients
In this chapter, you'll learn:
本章你將學習: How to create client applications that call your web API.
如何創建調用Web API的客戶端應用程序。包括以下幾個部分:
本章你將學習: How to create client applications that call your web API.
如何創建調用Web API的客戶端應用程序。包括以下幾個部分:
-
3.1 Sample: Introduction to HttpClient
示例:HttpClient介紹 -
This sample demonstrates HttpClient, a modern HTTP client for .NET. HttpClient provides a flexible and extensible API for accessing all things exposed through HTTP.
這個示例演示HttpClient,用於.NET的一種現代HTTP客戶端。HttpClient為訪問通過HTTP暴露的所有事物提供了一種靈活、可擴展的API。(注:在http://blogs.msdn.com/b/webdev/archive/2012/08/26/asp-net-web-api-and-httpclient-samples.aspx上現在有三個HttpClient方面的示例,本教程系列翻譯略 — 譯者注)。 -
3.2 Calling a Web API From a .NET Client
通過.NET客戶端調用Web API -
By Mike Wasson | July 18, 2012
作者:Mike Wasson | 日期:2012-7-18 -
This tutorial shows how to use HttpClient in a C# console application, to make HTTP calls to a web API.
本教程展示如何在一個C#控制台應用程序中使用HttpClient,形成對Web API的HTTP調用。 -
3.3 Calling a Web API From a WPF Application
通過WPF應用程序調用Web API -
By Mike Wasson | August 22, 2012
作者:Mike Wasson | 日期:2012-8-22 -
This tutorial builds on the previous, by showing how to handle asynchronous methods in HttpClient, without blocking the client UI.
本教程建立在前面的基礎之上,展示如何在HttpClient中處理異步方法, -
3.4 HttpClient Message Handlers
HttpClient消息處理程序 -
By Mike Wasson|October 1, 2012
作者:Mike Wasson | 日期:2012-10-1 -
Shows how to add custom HTTP message handlers to the HttpClient pipeline.
展示如何將自定義HTTP消息處理程序添加到HttpClient管線。