All Projects → tmenier → Flurl

tmenier / Flurl

Licence: mit
Fluent URL builder and testable HTTP client for .NET

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Flurl

Python Ilorest Library Old
Python library for iLO RESTful API
Stars: ✭ 85 (-97.06%)
Mutual labels:  rest-client
Restclient.net
.NET REST Client Framework for all platforms
Stars: ✭ 143 (-95.06%)
Mutual labels:  rest-client
Fshttp
A lightweight F# HTTP library.
Stars: ✭ 181 (-93.75%)
Mutual labels:  rest-client
Fetcher Ts
Type-safe wrapper around Fetch API
Stars: ✭ 87 (-96.99%)
Mutual labels:  rest-client
Frequest
FRequest - A fast, lightweight and opensource desktop application to make HTTP(s) requests
Stars: ✭ 130 (-95.51%)
Mutual labels:  rest-client
Tiny.restclient
Simpliest Fluent REST client for .NET
Stars: ✭ 158 (-94.54%)
Mutual labels:  rest-client
Restclient Cpp
C++ client for making HTTP/REST requests
Stars: ✭ 1,206 (-58.33%)
Mutual labels:  rest-client
Grapevine Legacy
Embedding A REST Server In Your Application Should Be Simple
Stars: ✭ 211 (-92.71%)
Mutual labels:  rest-client
Python Simple Rest Client
Simple REST client for python 3.6+
Stars: ✭ 143 (-95.06%)
Mutual labels:  rest-client
Crest
HTTP and REST client for Crystal
Stars: ✭ 174 (-93.99%)
Mutual labels:  rest-client
Elasticsearch
🌐 This application illustrates and demonstrates use of ElasticSearch Java API in the backend
Stars: ✭ 97 (-96.65%)
Mutual labels:  rest-client
Openapi Cli Generator
Generate a CLI from an OpenAPI 3 specification
Stars: ✭ 121 (-95.82%)
Mutual labels:  rest-client
Vue Chimera
VueJS reactive RESTful API
Stars: ✭ 160 (-94.47%)
Mutual labels:  rest-client
Confluence Dumper
Tool to export Confluence spaces and pages recursively via its API
Stars: ✭ 86 (-97.03%)
Mutual labels:  rest-client
Dalsoft.restclient
The C# REST Client - the only REST/ HTTP Client you will ever need
Stars: ✭ 185 (-93.61%)
Mutual labels:  rest-client
Parse Dashboard For Ios
A beautiful mobile client for managing your Parse apps while you are on the go! Now you can easily view and modify your data in the same way you would on the offical desktop client.
Stars: ✭ 81 (-97.2%)
Mutual labels:  rest-client
Use Http
🐶 React hook for making isomorphic http requests
Stars: ✭ 2,066 (-28.61%)
Mutual labels:  rest-client
Dev Tools
The most popular software developer tools in one app
Stars: ✭ 221 (-92.36%)
Mutual labels:  rest-client
Rester
A REST client for almost any web service (Firefox and Chrome Extension)
Stars: ✭ 192 (-93.37%)
Mutual labels:  rest-client
Chembl webresource client
Official Python client for accessing ChEMBL API.
Stars: ✭ 165 (-94.3%)
Mutual labels:  rest-client

Flurl

Build status Flurl-stable Flurl.Http-stable Flurl-pre-release Flurl.Http-pre-release

Flurl is a modern, fluent, asynchronous, testable, portable, buzzword-laden URL builder and HTTP client library.

var result = await "https://api.mysite.com"
    .AppendPathSegment("person")
    .SetQueryParams(new { api_key = "xyz" })
    .WithOAuthBearerToken("my_oauth_token")
    .PostJsonAsync(new { first_name = firstName, last_name = lastName })
    .ReceiveJson<T>();

[Test]
public void Can_Create_Person() {
    // fake & record all http calls in the test subject
    using (var httpTest = new HttpTest()) {
        // arrange
        httpTest.RespondWith("OK", 200);

        // act
        await sut.CreatePersonAsync("Claire", "Underwood");
        
        // assert
        httpTest.ShouldHaveCalled("http://api.mysite.com/*")
            .WithVerb(HttpMethod.Post)
            .WithContentType("application/json");
    }
}

Get it on NuGet:

PM> Install-Package Flurl.Http

Or get just the stand-alone URL builder without the HTTP features:

PM> Install-Package Flurl

For updates and announcements, follow @FlurlHttp on Twitter.

For detailed documentation, please visit the main site.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].