Found 100 packages
Extensions for HttpClient
Provides extension methods for HttpClient PutAsync, PostAsync and GetAsync which support a progress reporting action.
Friendly and helpful library to handle HTTP requests
HttpLib is a free (Apache 2.0 License) web request helper for .Net that makes it easier for developers to access and download resources from the internet. - Supports most HTTP Verbs: GET / POST / PUT / DELETE and more - Upload and download files to disk - Progress monitor for file uploads/downloads - Completely asynchronous operation
A source generator providing IEazyHttpClients from configuration
Update: This NuGet package has been renamed to 'ScriptCs.Request' so please install that package (https://www.nuget.org/packages/ScriptCs.Request/) instead since this package will not be maintained. Using this script pack you can write very simple declarative scripts for performing http requests without all the boilerplate code normally required for this. You can even define your own classes and they will automatically get serialized using Json.NET when using POST and PUT methods. Please go to the project url https://github.com/martinobrink/ScriptCs.Request to see examples on how simple your scripts can get.
An assembly for extending calls in Http-related classes.
上传 下载 Get、Post、Put、Delete
.NET HTTP Client Service library. Use this library to quickly bootstrap your .NET HttpClient Service calls. It uses the System.Net.Http library. You pass in your routes and objects for the calls - Get, Post, Put, Patch, Delete. It returns an HttpResponseMessage/String Response depending on the method called which you can then utilize in your projects.
HttpResponseManager is a portable library. Using this library application can call and get Web API response using GET and PUT methods. User can also include the Headers while calling APIs.
便捷的HttpClient库 支持GET/POST/PUT/Delete 上传文件/文件参数 =========================== 使用HttpWebRequest实现
Provides base class functionality that serves as an HTTP data proxy implementation. Use this to quickly create peasy data proxies that communicate with HTTP services via GET, POST, PUT, and DELETE invocations.
A RESTful API is an application program interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data.
Collection of helper functions for interacting with HTTP calls
Ferramenta para utlizar o REST, http rest api post get put delete afonsoft
*TestBase* gives you a flying start with - fluent assertions that are simple to extend - sharp error messages - tools to help you test with “heavyweight” dependencies on - AspNetCore.Mvc, AspNet.Mvc 3-5, or WebApi Contexts - HttpClient - Ado.Net - Streams & Logging - Mix & match with your favourite test runners & assertions. # TestBase.HttpClient.Fake ``` //Arrange var httpClient = new FakeHttpClient() .SetupGetUrl("https://host.*/").Returns(request=> "Got:" + request.RequestUri) .SetupGetPath("/uri[Pp]attern/").Returns("stringcontent") .SetupPost(".*").Returns(response) .SetupPost(".*", new byte[]{1,2,3}).Returns(otherResponse) .SetupPost(".*", "a=1&b=2") .Returns( request => "You said : " + request.Content.ReadAsStringAsync().ConfigureFalseGetResult(), HttpStatusCode.Accepted) .Setup(x=>x.RequestUri.PathAndQuery.StartsWith("/this")).Returns(response) .Setup(x=>x.Method ==HttpMethod.Put) .Returns(new HttpResponseMessage(HttpStatusCode.Accepted)); // Act var putResponse = await httpClient.PutAsync("http://localhost/thing", new StringContent("{a=1,b=2}")); var postResponse= await httpClient.PostAsync("http://[::1]/", new StringContent("a=1&b=2")); //Debug httpClient.Invocations .ForEach(async i =>Console.WriteLine("{0} {1}",i.RequestUri, await i.Content.ReadAsStringAsync())); //Assert putResponse.StatusCode.ShouldBe(HttpStatusCode.Accepted); postResponse.ShouldBe(response); // ==> SetupPost(".*").Returns(response) was the first // matched setup. Setups are tried in first-to-last order. httpClient.Verify(x=>x.Method ==HttpMethod.Put, "Expected Put, but no matching invocations."); httpClient.Verify( x=>x.Method ==HttpMethod.Post && x.Content.ReadAsStringAsync().ConfigureFalseGetResult()=="a=1&b=2", "Expected Post a=1&b=2"); httpClient.VerifyAll(); // ==> "Exception : 4 unmatched expectations" ``` ### TestBase Chainable fluent assertions get you to the point concisely. ``` UnitUnderTest.Action() .ShouldNotBeNull() .ShouldEqualByValueExceptFor(new {Id=1, Descr=expected}, ignoreList ) .Payload .ShouldMatchIgnoringCase("I expected this") .Should(someOtherPredicate); .ShouldEqualByValue().ShouldEqualByValueExceptFor(...).ShouldEqualByValueOnMembers() work with all kinds of object and collections, and report what differed. string.ShouldMatch(pattern).ShouldNotMatch().ShouldBeEmpty().ShouldNotBeEmpty() .ShouldNotBeNullOrEmptyOrWhiteSpace().ShouldEqualIgnoringCase() .ShouldContain().ShouldStartWith().ShouldEndWith().ShouldBeContainedIn().ShouldBeOneOf().ShouldNotBeOneOf() numeric.ShouldBeBetween().ShouldEqualWithTolerance()....GreaterThan....LessThan...GreaterOrEqualTo ... ienumerable.ShouldAll().ShouldContain().ShouldNotContain().ShouldBeEmpty().ShouldNotBeEmpty() ... stream.ShouldHaveSameStreamContentAs().ShouldContain() value.ShouldBe().ShouldNotBe().ShouldBeOfType().ShouldBeAssignableTo()... .ShouldAll(predicate), .SingleOrAssertFail()... ``` See also - [TestBase](https://www.nuget.org/packages/TestBase) - [TestBase.AspNetCore.Mvc](https://www.nuget.org/packages/TestBase.AspNetCore.Mvc) - [TestBase-Mvc](https://www.nuget.org/packages/TestBase-Mvc) - [TestBase.AdoNet](https://www.nuget.org/packages/TestBase.AdoNet) - [Serilog.Sinks.ListOfString](https://www.nuget.org/packages/Serilog.Sinks.Listofstring) - [Extensions.Logging.ListOfString](https://www.nuget.org/packages/Extensions.Logging.ListOfString)
HTTP Client wrapping library to GET, PUT, PATCH, POST synchron and asynchron Webrequests using System.Net.Webrequest. Consume web services (such as RESTful) over HTTP with authentication Support.
This package provides middleware for logging HTTP requests using Serilog in ASP.NET Core applications. It includes support for logging request bodies for POST, PUT, and PATCH methods, and query strings for all HTTP methods.
便捷的HttpClient库 支持GET/POST/PUT/Delete,上传与下载的进度监控,既可以上传文件等二进制数据,也可以上传表单键值对 =========================== 使用HttpClient 新增HttpDown多线程断点续传下载