dotnetomaniak.pl - Artykuły z tagiem HttpClientdotnetomaniak.pl - Artykuły z tagiem HttpClient2024-03-29T07:48:56Zhttps://dotnetomaniak.pl/Tags/HttpClientCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png12025https://dotnetomaniak.pl/How-to-test-typed-HTTP-clients-in-NET%C2%A06How to test typed HTTP clients in .NET 6?2022-07-03T19:42:32Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_e6We8pGZuEm2pYG13a8TRQ.png"/></div><div>Strongly typed HTTP clients are very useful and convenient. Here's how to test them without sacrificing the advantages of dependency injection.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/How-to-test-typed-HTTP-clients-in-NET%C2%A06"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fmikolaj-kaminski.com%2fhow-to-test-typed-http-client-with-di%2f" style="border:0px"/></a></div></div>mkaminskihttps://dotnetomaniak.pl/Users/PaL6OYijOkm0IO2RPWnQ3A2022-07-04T07:06:44Zhttps://dotnetomaniak.pl/How-to-test-typed-HTTP-clients-in-NET%C2%A0611830Strongly typed HTTP clients are very useful and convenient. Here's how to test them without sacrificing the advantages of dependency injection.https://mikolaj-kaminski.com/how-to-test-typed-http-client-with-di/http://dotnetomaniak.pl/Data/Thumbnails/small_e6We8pGZuEm2pYG13a8TRQ.pnghttps://dotnetomaniak.pl/Round-robin-DNS-support-in-NET-HttpClient-Meziantous-blogRound-robin DNS support in .NET HttpClient - Meziantou's blog2022-06-06T14:06:52Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_0c5ds-_Tq0mLN17zc9U2Ng.png"/></div><div>Round-robin DNS support in .NET HttpClien</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Round-robin-DNS-support-in-NET-HttpClient-Meziantous-blog"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.meziantou.net%2fround-robin-dns-support-in-dotnet-httpclient.htm" style="border:0px"/></a></div></div>Piotr Stapphttps://dotnetomaniak.pl/Users/uYS8cHLZukmjW_DgdZuz0Q2022-06-07T07:02:23Zhttps://dotnetomaniak.pl/Round-robin-DNS-support-in-NET-HttpClient-Meziantous-blog1530Round-robin DNS support in .NET HttpClienhttps://www.meziantou.net/round-robin-dns-support-in-dotnet-httpclient.htmhttp://dotnetomaniak.pl/Data/Thumbnails/small_0c5ds-_Tq0mLN17zc9U2Ng.pnghttps://dotnetomaniak.pl/EN-Streaming-JSON-Objects-NDJSON-With-HttpClient[EN] Streaming JSON Objects (NDJSON) With HttpClient2021-05-14T08:43:36Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_OVTi-aNirUS9Rhdl3mS-JQ.png"/></div><div>This is next post in my little series on streaming JSON objects (NDJSON) in .NET. This one discusses how to send an async stream with HttpClient.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Streaming-JSON-Objects-NDJSON-With-HttpClient"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.tpeczek.com%2f2021%2f05%2fstreaming-json-objects-ndjson-with.html" style="border:0px"/></a></div></div>tpeczekhttps://dotnetomaniak.pl/Users/jTIx7Ar3AUSeW2FPwvQJzQ2021-05-17T06:37:19Zhttps://dotnetomaniak.pl/EN-Streaming-JSON-Objects-NDJSON-With-HttpClient2590This is next post in my little series on streaming JSON objects (NDJSON) in .NET. This one discusses how to send an async stream with HttpClient.https://www.tpeczek.com/2021/05/streaming-json-objects-ndjson-with.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_OVTi-aNirUS9Rhdl3mS-JQ.pnghttps://dotnetomaniak.pl/The-3-things-that-should-not-be-left-for-last-in-projectsThe 3 things that should not be left for last in projects2021-02-01T19:02:51Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_d30L69-GM0Wp0Kv_OnCdtA.png"/></div><div>Czy chcesz uniknąć czynności, których nie musiałbyś wykonywać, gdybyś zrobił je wcześniej? Pracując w projektach, zauważyłem obszary, które mogą spowodować nieoczekiwane problemy, jeżeli pozostawimy je na sam koniec projektu. Opisuje 3, które najbardziej mi doskwierają gdy widzę, że są odkładane w czasie.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/The-3-things-that-should-not-be-left-for-last-in-projects"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2ftechleaderjourney.com%2fthe-3-things-that-should-not-be-left-for-last-in-projects%2f" style="border:0px"/></a></div></div>Adrian_Tarnowskihttps://dotnetomaniak.pl/Users/-jw-_R8XckCf4P10Aqs9zQ2021-02-03T11:03:46Zhttps://dotnetomaniak.pl/The-3-things-that-should-not-be-left-for-last-in-projects11030Czy chcesz uniknąć czynności, których nie musiałbyś wykonywać, gdybyś zrobił je wcześniej? Pracując w projektach, zauważyłem obszary, które mogą spowodować nieoczekiwane problemy, jeżeli pozostawimy je na sam koniec projektu. Opisuje 3, które najbardziej mi doskwierają gdy widzę, że są odkładane w czasie.https://techleaderjourney.com/the-3-things-that-should-not-be-left-for-last-in-projects/http://dotnetomaniak.pl/Data/Thumbnails/small_d30L69-GM0Wp0Kv_OnCdtA.pnghttps://dotnetomaniak.pl/Jak-dostarczyc-klienta-APIJak dostarczyć klienta API2020-09-18T13:35:57Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_U4ZwIMva0UGWRDQiClKktw.png"/></div><div>Tym razem chciałbym się skupić na tym, jak dostarczyć odpowiednie fragmenty kodu klienta API do pozostałych członków zespołu tak, by każdy mógł go używać w odpowiedni sposób.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Jak-dostarczyc-klienta-API"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fcesarstwo-dev.pl%2fjak-dostarczyc-klienta-api%2f" style="border:0px"/></a></div></div>Cesarstwo-Devhttps://dotnetomaniak.pl/Users/YA8jPoD8Ak2rDEdmEzwpXA2020-09-21T06:37:00Zhttps://dotnetomaniak.pl/Jak-dostarczyc-klienta-API41130Tym razem chciałbym się skupić na tym, jak dostarczyć odpowiednie fragmenty kodu klienta API do pozostałych członków zespołu tak, by każdy mógł go używać w odpowiedni sposób.https://cesarstwo-dev.pl/jak-dostarczyc-klienta-api/http://dotnetomaniak.pl/Data/Thumbnails/small_U4ZwIMva0UGWRDQiClKktw.pnghttps://dotnetomaniak.pl/HttpClient-explained-using-netstat-DeadDesktopHttpClient explained using netstat - DeadDesk.top2019-11-26T12:28:31Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_ixWM606pRESsnAqPdbIngw.png"/></div><div>Piotr Szymura
software engineer, full-stack developer, open source contributor, crypto/blockchain enthusiast, try hard guitarist, starcraft fan
FollowWrocław Email
Twitter
LinkedIn
GitHub
Stackoverflow
Learn http client once again this time via netstat
This is not a guide to:
How to use HttpClient in your app ?
But rather how to use netstat and how TCP connections are behaving in different code scenarios.
Below examples will show...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/HttpClient-explained-using-netstat-DeadDesktop"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fdeaddesk.top%2fhttp-client-explained-with-netstat%2f" style="border:0px"/></a></div></div>undernotichttps://dotnetomaniak.pl/Users/9EO05rMWwkGm8e-wjF2AZw2019-11-27T07:48:13Zhttps://dotnetomaniak.pl/HttpClient-explained-using-netstat-DeadDesktop21350Piotr Szymura
software engineer, full-stack developer, open source contributor, crypto/blockchain enthusiast, try hard guitarist, starcraft fan
FollowWrocław Email
Twitter
LinkedIn
GitHub
Stackoverflow
Learn http client once again this time via netstat
This is not a guide to:
How to use HttpClient in your app ?
But rather how to use netstat and how TCP connections are behaving in different code scenarios.
Below examples will show...https://deaddesk.top/http-client-explained-with-netstat/http://dotnetomaniak.pl/Data/Thumbnails/small_ixWM606pRESsnAqPdbIngw.pnghttps://dotnetomaniak.pl/EN-Alternative-approach-to-HttpClient-in-Azure-Functions-20-bringing-in-HttpClientFactory[EN] Alternative approach to HttpClient in Azure Functions 2.0 - bringing in HttpClientFactory2018-12-12T10:11:17Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_p1dLPwbMv0aGvU4xzIynVg.png"/></div><div>HttpClient is not as straightforward to use as it may seem. The current recommendation for Azure Functions advises usage of a static client, but HttpClientFactory can be an interesting alternative.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Alternative-approach-to-HttpClient-in-Azure-Functions-20-bringing-in-HttpClientFactory"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.tpeczek.com%2f2018%2f12%2falternative-approach-to-httpclient-in.html" style="border:0px"/></a></div></div>tpeczekhttps://dotnetomaniak.pl/Users/jTIx7Ar3AUSeW2FPwvQJzQ2018-12-13T08:08:51Zhttps://dotnetomaniak.pl/EN-Alternative-approach-to-HttpClient-in-Azure-Functions-20-bringing-in-HttpClientFactory1420HttpClient is not as straightforward to use as it may seem. The current recommendation for Azure Functions advises usage of a static client, but HttpClientFactory can be an interesting alternative.https://www.tpeczek.com/2018/12/alternative-approach-to-httpclient-in.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_p1dLPwbMv0aGvU4xzIynVg.pnghttps://dotnetomaniak.pl/EN-HttpClientFactory-in-ASPNET-Core-21-Part-4-Steve-Gordon[EN] HttpClientFactory in ASP.NET Core 2.1 (Part 4) - Steve Gordon2018-07-03T20:08:35Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_KpHrLKyje0SqsxfZ7ypEAw.png"/></div><div>In the previous post in this series, I introduced the concept of outgoing middleware using DelegatingHandlers registered with named and typed clients. While that approach is available, the ASP.NET team hope that for most scenarios, we won’t need to resort to manually building our own handlers. In some cases, the built-in features of the library may provide the functionality we need. For example, it is sometimes useful to wrap requests ...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-HttpClientFactory-in-ASPNET-Core-21-Part-4-Steve-Gordon"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.stevejgordon.co.uk%2fhttpclientfactory-using-polly-for-transient-fault-handling" style="border:0px"/></a></div></div>Piotr Stapphttps://dotnetomaniak.pl/Users/uYS8cHLZukmjW_DgdZuz0Q2018-07-05T07:14:10Zhttps://dotnetomaniak.pl/EN-HttpClientFactory-in-ASPNET-Core-21-Part-4-Steve-Gordon1310In the previous post in this series, I introduced the concept of outgoing middleware using DelegatingHandlers registered with named and typed clients. While that approach is available, the ASP.NET team hope that for most scenarios, we won’t need to resort to manually building our own handlers. In some cases, the built-in features of the library may provide the functionality we need. For example, it is sometimes useful to wrap requests ...https://www.stevejgordon.co.uk/httpclientfactory-using-polly-for-transient-fault-handlinghttp://dotnetomaniak.pl/Data/Thumbnails/small_KpHrLKyje0SqsxfZ7ypEAw.pnghttps://dotnetomaniak.pl/Angular-5-HttpClient-programmer-girlAngular 5: HttpClient – programmer-girl2018-03-25T12:05:09Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_awfL4V6kfkqwTYy9pAxUWg.png"/></div><div>Przy okazji aktualizacji Angulara do wersji 5, zobaczyłam, że są dostępne nowe, zaktualizowane pakiety. Na początek skupiłam się na HttpClientModule. We wpisie pokazuję, jak jego wykorzystanie upraszcza kod serwisów i komponentów.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Angular-5-HttpClient-programmer-girl"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fprogrammer-girl.com%2f2018%2f03%2f25%2fangular-5-httpclient%2f" style="border:0px"/></a></div></div>Weronika Mularczykhttps://dotnetomaniak.pl/Users/O1ApavoJX0SfwkW8t4YbUQ2018-04-03T07:53:41Zhttps://dotnetomaniak.pl/Angular-5-HttpClient-programmer-girl11050Przy okazji aktualizacji Angulara do wersji 5, zobaczyłam, że są dostępne nowe, zaktualizowane pakiety. Na początek skupiłam się na HttpClientModule. We wpisie pokazuję, jak jego wykorzystanie upraszcza kod serwisów i komponentów.https://programmer-girl.com/2018/03/25/angular-5-httpclient/http://dotnetomaniak.pl/Data/Thumbnails/small_awfL4V6kfkqwTYy9pAxUWg.pnghttps://dotnetomaniak.pl/Testy-integracyjne-dla-ASPNET-Core-Web-API-DevKRTesty integracyjne dla ASP.NET Core Web API - DevKR2018-03-19T22:28:18Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_8nvzJq8o0E2n6PHETz3kpg.png"/></div><div>Mówisz, że Twój kod działa, ale czy na pewno jesteś tego pewny? Sprawdź jak pisać testy integracyjne kontrolerów dla ASP.NET Core Web API.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Testy-integracyjne-dla-ASPNET-Core-Web-API-DevKR"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fdevkr.pl%2f2018%2f03%2f19%2ftesty-integracyjne-dla-asp-net-core-web-api%2f" style="border:0px"/></a></div></div>Krzysztof_DevKRhttps://dotnetomaniak.pl/Users/L_8swuZU8ku3ekjD5fGAPA2018-03-27T18:16:18Zhttps://dotnetomaniak.pl/Testy-integracyjne-dla-ASPNET-Core-Web-API-DevKR12450Mówisz, że Twój kod działa, ale czy na pewno jesteś tego pewny? Sprawdź jak pisać testy integracyjne kontrolerów dla ASP.NET Core Web API.http://devkr.pl/2018/03/19/testy-integracyjne-dla-asp-net-core-web-api/http://dotnetomaniak.pl/Data/Thumbnails/small_8nvzJq8o0E2n6PHETz3kpg.pnghttps://dotnetomaniak.pl/EN-Supporting-Encrypted-Content-Encoding-in-HttpClient-Part-2-of-2-Decoding[EN] Supporting Encrypted Content-Encoding in HttpClient (Part 2 of 2) - Decoding2017-03-07T21:58:27Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_g0vrMuMRJEyyZcT6qCIT0A.png"/></div><div>In previous post I've shown how HttpClient can be extended with payload encryption capabilities by providing support for aes128gcm encoding. In this post I'm going to extend Aes128GcmEncoding class with decoding capabilities.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Supporting-Encrypted-Content-Encoding-in-HttpClient-Part-2-of-2-Decoding"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2ftpeczek.blogspot.com%2f2017%2f03%2fsupporting-encrypted-content-encoding.html" style="border:0px"/></a></div></div>tpeczekhttps://dotnetomaniak.pl/Users/jTIx7Ar3AUSeW2FPwvQJzQhttps://dotnetomaniak.pl/EN-Supporting-Encrypted-Content-Encoding-in-HttpClient-Part-2-of-2-Decoding180In previous post I've shown how HttpClient can be extended with payload encryption capabilities by providing support for aes128gcm encoding. In this post I'm going to extend Aes128GcmEncoding class with decoding capabilities.http://tpeczek.blogspot.com/2017/03/supporting-encrypted-content-encoding.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_g0vrMuMRJEyyZcT6qCIT0A.pnghttps://dotnetomaniak.pl/EN-Supporting-Encrypted-Content-Encoding-in-HttpClient-Part-1-of-2-Encoding[EN] Supporting Encrypted Content-Encoding in HttpClient (Part 1 of 2) - Encoding2017-02-28T09:05:12Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_XrIk8jGC9USgFg9Td8cOBQ.png"/></div><div>The "Encrypted Content-Encoding for HTTP" aims at providing standard solution for encrypting the contents of a HTTP message so that when the payload is stored, only someone with the appropriate key can read it. In this and next post I'm going to show how it can be used with HttpClient.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Supporting-Encrypted-Content-Encoding-in-HttpClient-Part-1-of-2-Encoding"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2ftpeczek.blogspot.co.uk%2f2017%2f02%2fsupporting-encrypted-content-encoding.html" style="border:0px"/></a></div></div>tpeczekhttps://dotnetomaniak.pl/Users/jTIx7Ar3AUSeW2FPwvQJzQ2017-03-01T17:32:39Zhttps://dotnetomaniak.pl/EN-Supporting-Encrypted-Content-Encoding-in-HttpClient-Part-1-of-2-Encoding1410The "Encrypted Content-Encoding for HTTP" aims at providing standard solution for encrypting the contents of a HTTP message so that when the payload is stored, only someone with the appropriate key can read it. In this and next post I'm going to show how it can be used with HttpClient.http://tpeczek.blogspot.co.uk/2017/02/supporting-encrypted-content-encoding.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_XrIk8jGC9USgFg9Td8cOBQ.png