{"action":"created","issue":{"url":"https://api.github.com/repos/tmenier/Flurl/issues/24","labels_url":"https://api.github.com/repos/tmenier/Flurl/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/tmenier/Flurl/issues/24/comments","events_url":"https://api.github.com/repos/tmenier/Flurl/issues/24/events","html_url":"https://github.com/tmenier/Flurl/issues/24","id":54257023,"number":24,"title":"ModernHttpClient support?","user":{"login":"omares","id":1375307,"avatar_url":"https://avatars.githubusercontent.com/u/1375307?v=3","gravatar_id":"","url":"https://api.github.com/users/omares","html_url":"https://github.com/omares","followers_url":"https://api.github.com/users/omares/followers","following_url":"https://api.github.com/users/omares/following{/other_user}","gists_url":"https://api.github.com/users/omares/gists{/gist_id}","starred_url":"https://api.github.com/users/omares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omares/subscriptions","organizations_url":"https://api.github.com/users/omares/orgs","repos_url":"https://api.github.com/users/omares/repos","events_url":"https://api.github.com/users/omares/events{/privacy}","received_events_url":"https://api.github.com/users/omares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-13T22:22:57Z","updated_at":"2015-01-13T22:57:57Z","closed_at":null,"body":"Hey, is there a way to use the [ModernHttpClient](https://github.com/paulcbetts/ModernHttpClient) instead of HttpClient?"},"comment":{"url":"https://api.github.com/repos/tmenier/Flurl/issues/comments/69838109","html_url":"https://github.com/tmenier/Flurl/issues/24#issuecomment-69838109","issue_url":"https://api.github.com/repos/tmenier/Flurl/issues/24","id":69838109,"user":{"login":"tmenier","id":1350414,"avatar_url":"https://avatars.githubusercontent.com/u/1350414?v=3","gravatar_id":"","url":"https://api.github.com/users/tmenier","html_url":"https://github.com/tmenier","followers_url":"https://api.github.com/users/tmenier/followers","following_url":"https://api.github.com/users/tmenier/following{/other_user}","gists_url":"https://api.github.com/users/tmenier/gists{/gist_id}","starred_url":"https://api.github.com/users/tmenier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmenier/subscriptions","organizations_url":"https://api.github.com/users/tmenier/orgs","repos_url":"https://api.github.com/users/tmenier/repos","events_url":"https://api.github.com/users/tmenier/events{/privacy}","received_events_url":"https://api.github.com/users/tmenier/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T22:57:57Z","updated_at":"2015-01-13T22:57:57Z","body":"Sure. It looks like this would be fairly simple. First define a custom `HttpClient` factory like this:\r\n\r\n```C#\r\nusing Flurl.Http.Configuration;\r\n\r\npublic class ModernHttpClientFactory : DefaultHttpClientFactory\r\n{\r\n    public override HttpMessageHandler CreateMessageHandler() {\r\n        return new ModernHttpClient.NativeMessageHandler();\r\n    }\r\n}\r\n```\r\n\r\nThen on app startup, register it with Flurl thusly:\r\n\r\n```C#\r\nFlurlHttp.Configure(c => {\r\n    c.HttpClientFactory = new ModernHttpClientFactory();\r\n});\r\n```\r\n    \r\nLet me know if this works for you.\r\n"}}