103 Commits

Author SHA1 Message Date
Todd Menier
7b674a4c27 maybe the delay just isn't long enough 2019-03-21 14:38:52 -05:00
Todd Menier
a195cdbc0a with ConditionalWeakTable? 2019-03-21 14:31:31 -05:00
Todd Menier
f5a0311693 how about with a lock? 2019-03-21 14:26:53 -05:00
Todd Menier
e007af59f1 I lied. Let's reduce it and see if AV really can't do multithreaded 2019-03-21 14:21:53 -05:00
Todd Menier
7fa169cb68 final attempt to get this test to pass on AV, then I'm moving on :) 2019-03-21 14:10:30 -05:00
Todd Menier
41a16249ed more troubleshooting pesky test 2019-03-21 13:36:31 -05:00
Todd Menier
529d25a940 troubleshoot test that's failing only on AppVeyor 2019-03-21 13:24:11 -05:00
Nikolay Molchanov
72be7f40c0 [add] coverage for tests 2019-02-24 12:04:41 +03:00
Todd Menier
7c5d19798a Test for #366 & #398 2019-02-14 19:14:05 -06:00
Todd Menier
6ad5659e68 #375 is likely unfixable 2019-02-14 16:46:38 -06:00
Todd Menier
455e934003 #420
Url.Clone doesn't need a string extension equivalent (nice catch though)
2019-02-14 15:19:52 -06:00
Todd Menier
fc45b9f3c9 #404 better downloaded filename inference 2019-02-14 14:53:44 -06:00
Todd Menier
75df464cde #411 Url.Clone 2019-01-25 22:50:02 -06:00
Todd Menier
71993a7b2a Test for #366
cannot repro
2019-01-25 13:48:06 -06:00
Todd Menier
74588eb7f0 Test for #375 2019-01-25 11:17:00 -06:00
Todd Menier
017153bf1c #402 multipart enhancement
allow specifying different filename when uploading from local path
2019-01-20 10:18:13 -06:00
Todd Menier
d90e27c63b #406 Url ctor that takes Uri 2019-01-20 09:57:30 -06:00
Todd Menier
4be2911281 #392 multipart fix
string parts can't have content-type
2019-01-20 08:27:46 -06:00
Todd Menier
c3479fa285 Test for #370 2019-01-19 17:00:20 -06:00
Todd Menier
f6b335ace4 #373 ObjectToKV bug
should only consider publicly readable properties
2019-01-19 11:11:17 -06:00
Todd Menier
6458c507b7 #330 - better ConnectionLeaseTimeout implementation - replace/dispose HttpClient instance at timeout interval. 2018-08-26 19:40:33 -05:00
Todd Menier
c9dd91cd31 #347 WithRequestUrlEncoded test assertion 2018-08-12 10:51:55 -05:00
Todd Menier
f457383d71 #356 better locking implementation (thx to mike z https://stackoverflow.com/a/51565934/62600) 2018-07-28 11:20:31 -05:00
Todd Menier
8e15c7b815 #356 better test for thread safety 2018-07-28 11:03:10 -05:00
Todd Menier
925a05ff5f #356 IFlurlClientFactory.ConfigureClient 2018-07-27 15:58:20 -05:00
Todd Menier
6c69d1bef3 #337 Url.Equals 2018-07-20 17:19:38 -05:00
Todd Menier
2d28762e14 slightly better test for #339 2018-07-20 17:19:02 -05:00
Marusyk
304e0978d0 Add ToUri() method that converts this Url object to System.Uri 2018-07-08 22:10:01 +03:00
Marusyk
c419e67bdf Add implicit conversion from Flurl.Url to System.Uri. Fixes #339 2018-07-03 19:11:25 +03:00
Todd Menier
3e92f636cb #335 when using FlurlClient.HttpClient directly, in a test context, a null HttpCall gets added to the CallLog. avoid that 2018-07-02 11:47:53 -05:00
Todd Menier
6b74ac318d #334 NullRefEx when creating FlurlClient with existing HttpClient, then disposing 2018-07-02 11:00:58 -05:00
Todd Menier
42d6ea45d8 Revert "#327 ensure multipart name/filename values are quoted"
This reverts commit 4bf509a4d866d021d2e08bec372041a016f93d29.
2018-07-02 08:36:51 -05:00
Todd Menier
4bf509a4d8 #327 ensure multipart name/filename values are quoted 2018-06-21 17:04:19 -05:00
Todd Menier
7933dee1c7 #331, includes general refactoring to expose header normalization logic as SetHeader and GetHeaderValue extensions on both HttpRequestMessage and HttpResponseMessage so other things can leverage it (like testing helpers) 2018-06-21 12:16:09 -05:00
Todd Menier
2b7adaee4d #313 don't throw when a content-level header is set on on a request with no body 2018-06-20 21:21:41 -05:00
Todd Menier
82ae07d741 test hack for #179 no longer necessary (fixed on httpbin) 2018-06-20 18:34:48 -05:00
Todd Menier
52886645af some refactoring of verb-specific HTTP tests 2018-04-16 19:37:56 -05:00
Todd Menier
54c3044537 #298 FlurlClient ctor that wraps existing HttpClient 2018-04-16 17:55:58 -05:00
Todd Menier
5025cef1f4 #307 asserting headers with spaces 2018-04-16 17:27:22 -05:00
Todd Menier
d61d899d3a #256 don't overwrite content-type 2018-04-16 16:46:37 -05:00
Nathan Lowe
91f5e21a98
Fix cross-platform temp path failure for RealHttpTests 2018-03-31 12:21:54 -04:00
Nathan Lowe
205148d65e
Fix cross-platform test seperator failure for MultipartTests.can_build_multipart_content() 2018-03-31 12:21:54 -04:00
Nathan Lowe
031ae4619e
Add tooling for building only nestandard and netcoreapp targets
This is in prep for #286 and allows users on macOS and Linux to build
and test only the netstandard and netcoreapp targets. All published
projects support at least netstandard1.1 which is consumable from net45,
so if we decide to just have everyone consume a netstandard package this
can be greatly simplified.
2018-03-31 12:21:16 -04:00
Todd Menier
31bd5cbb57 #297 further tweaks to FlurlHttpException.Message based on feedback 2018-03-31 11:05:38 -05:00
Todd Menier
e8d18a09d1 #301 & #276 SetQueryParam refactoring, added QueryParamCollection.Merge 2018-03-31 09:48:02 -05:00
Todd Menier
438b27a6e9 #300 FlurlHttpException.GetResponseStringAsync & GetResponseJsonAsync 2018-03-30 16:03:26 -05:00
Todd Menier
154f4bbc8b #297 remove request & response bodies from FlurlHttpException.Message 2018-03-30 15:39:20 -05:00
Todd Menier
2c25acb5da Merge remote-tracking branch 'origin/dev' into dev 2018-03-30 15:08:38 -05:00
Todd Menier
4984617bbe #299 & #288 better exception handling for parsing errors 2018-03-30 15:08:24 -05:00
Nathan Lowe
2d0d8be52b
Test Assertion WithContentType no longer throws NullReferenceException if no content was sent
If a some requests were made to a URL containing the same part where some requests included
content and some did not, attempting to assert that the client ShouldHaveCalled that part
with a post and a contnet type would throw a NullReferenceException when it encountered
the requests that did not have any content sent with them. Ignore requests with no content
when asserting on ContentType.

Fixes #285
2018-03-13 12:24:38 -04:00