예제 #1
0
        private FluentClient CreateClient()
        {
            var client = FluentClient.Create(c => c
                                             .Interceptor(new LogInterceptor(_output.WriteLine))
                                             .Defaults(d => d
                                                       .State("happy", "joy")
                                                       .BaseUri(new Uri("http://httpbin.org/", UriKind.Absolute)))
                                             );

            return(client);
        }