70 Commits

Author SHA1 Message Date
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
Todd Menier
ffab17ac39 #239 glitch with request inheriting correct default settings when client changes 2017-11-28 12:00:17 -06:00
Todd Menier
0dac633b58 simplified test for #233 2017-10-09 13:34:00 -05:00
Ismail Hassani
f73c568e90 Fixed issue #233 2017-10-08 12:19:59 +02:00
Todd Menier
22ab91b43a #229 HttpTest.Settings should always take precedence 2017-10-03 16:43:10 -05:00
Todd Menier
1760be0e51 fixed some variable naming inconsistencies in tests 2017-09-30 12:45:57 -05:00
Todd Menier
49a67ecf4b #222 ConnectionLeaseTimeout 2017-09-30 12:37:25 -05:00
Todd Menier
7965c12b7f #223 assert headers in HttpTest 2017-09-30 10:42:58 -05:00
Todd Menier
1ba1d9efa5 #217 more robust exception message, minor tweaks to exception handling 2017-09-24 20:10:31 -05:00
Todd Menier
0f1ccb356d #44 WithHeaders(object) convert underscores in property names to hyphens 2017-09-23 12:19:14 -05:00
Todd Menier
84a45805e2 Configure a specific FlurlClient from global config (FlurlHttp.ConfigureClient) 2017-09-06 19:51:25 -05:00
Todd Menier
8556164f7b #202 - Find CookieContainer correctly when HttpClientHandler is wrapped in 1 or more DelegatingHandlers 2017-09-03 12:04:27 -05:00
Todd Menier
a4442c3f46 Update to #211 - FlurlClient.Request always uses Url.Combine (instead of AppendPathSegments) so something like Request("endpoint?x=1") works as expected 2017-09-03 12:02:33 -05:00
Todd Menier
3b0a5cb0ec #195 support array values in URL-encoded requests (jpiggyback on SetQueryParams logic) 2017-09-03 08:37:46 -05:00
Todd Menier
60fa56c04c Shoring up some settings related stuff 2017-09-02 16:31:56 -05:00
Todd Menier
84791f9b5a Url.ConfigureRequest is better than Url.Configure 2017-09-02 08:41:39 -05:00
Todd Menier
1fe170b274 ensure that disposed FlurlClients are not reused 2017-09-01 15:03:14 -05:00