Skip to content

AspNetCore.Proxy 1.4.0

Choose a tag to compare

@twitchax twitchax released this 16 Mar 22:26
· 161 commits to master since this release

This release adds functionality to leverage the proxy helpers without introducing new concepts.

You can now proxy from an existing Controller by calling an extension method which proxies the call and writes the response automatically.

public class MyController : Controller
{
    [Route("api/posts/{postId}")]
    public Task GetPosts(int postId)
    {
        return this.Proxy($"https://jsonplaceholder.typicode.com/posts/{postId}");
    }
}