86 Commits

Author SHA1 Message Date
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
Todd Menier
50637f14da #282 WithHeader shoud remove/exclude from Headers when value is null 2018-03-08 14:40:32 -06:00
Kroniak
9a3251044e
Merge branch 'dev' into netstd2 2018-02-17 23:23:58 +03:00
Todd Menier
c088cefdb3 #272 encode illegal characters only (not reserved) in query param names 2018-02-17 11:50:54 -06:00
Todd Menier
910260daf7 test for #266 was occasionally bumping up against StackExchange rate limits 2018-02-17 11:06:07 -06:00
Nikolay Molchanov
67d21f11e4 bump versions 2018-02-17 16:25:21 +03:00
Todd Menier
9fd1ffefb1 #266 automatic decompression 2018-01-01 12:00:43 -06:00
Todd Menier
350173a18c #262 better Url.Decode 2017-12-19 11:18:29 -06:00
Todd Menier
f1a9718061 #258 (and a redo of #185) 2017-12-18 22:27:03 -06:00
Todd Menier
0089eb836b Merge remote-tracking branch 'origin/issue-185' into dev 2017-12-09 15:30:06 -06:00
Todd Menier
cd6c86ab00 #253 new optional AppendPathSegment arg: fullyEncode 2017-12-09 13:41:34 -06:00
Todd Menier
cac438025d #253 avoid double-encoding encoded reserved characters 2017-12-09 13:19:13 -06:00
Todd Menier
b9628b12f0 #249 use ISO 8601 for all date serialization 2017-11-29 13:00:13 -06:00
Todd Menier
19ea54d980 added StripQuotes utility method 2017-11-29 09:29:18 -06:00
Todd Menier
9376706261 just reformatting 2017-11-28 16:37:39 -06:00
Todd Menier
f990350979 #247 ConfigureClient takes Action<IFlurlClient> instead of Action<FlurlHttpSettings> 2017-11-28 16:14:41 -06:00
Todd Menier
eed12148be #240 DownloadFileAsync should get default filename from Content-Disposition header when it exists 2017-11-28 15:45:42 -06:00
Todd Menier
6f3fea84f3 #246 test settings fix and some minor settings refactoring 2017-11-28 15:10:07 -06:00