1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
Commit graph

36 commits

Author SHA1 Message Date
Pedro Belo
f62708401b added a base exception class for all RestClient related exceptions 2008-06-25 19:02:02 -07:00
Adam Wiggins
95236bc6d2 ResourceNotFound exception for 404 errors 2008-06-24 03:27:21 -07:00
Adam Wiggins
b1dac743f4 better support for concatinating non-string urls 2008-06-23 17:27:52 -07:00
Pedro Belo
827b959b06 allow creation of RequestFailed without response to play nice with tests/specs 2008-06-23 13:51:42 -07:00
Pedro Belo
4d85b8cdfc fixed backwards compatibility, they were pointing to the wrong module 2008-06-23 13:50:08 -07:00
Adam Wiggins
9eb66847e4 improve nesting examples 2008-06-21 16:02:10 -07:00
Adam Wiggins
4f9d9a01a7 show RequestTimeout in place of Timeout::Error 2008-06-20 20:48:42 -07:00
Adam Wiggins
c7b31306b3 support non-strings in url concatination 2008-06-20 20:48:41 -07:00
Adam Wiggins
f87af3f7e5 show ServerBrokeConnection when server unexpectedly terminates the connection 2008-06-20 20:48:40 -07:00
Adam Wiggins
76b910b061 subresources with [] 2008-06-20 20:48:38 -07:00
Adam Wiggins
7c7e62515c support authentication in the URI, i.e. http://user:pass@example.com/resource 2008-06-20 19:44:36 -07:00
Adam Wiggins
7511d49770 show http status code in default RequestFailed message 2008-06-20 19:23:48 -07:00
Adam Wiggins
e8d0d84bd9 rdocs for RequestFailed 2008-06-20 19:09:57 -07:00
Adam Wiggins
6315a184f5 formating/whitespace fix 2008-06-20 19:05:41 -07:00
Pedro Belo
b8e4b83a1a fixed payload escaping, using a more complete set of unsafe chars 2008-06-20 11:08:38 -07:00
Pedro Belo
20e920e4f6 add backwards compatibility with RestClient::Resource exceptions 2008-06-12 11:21:39 -07:00
Pedro Belo
88660a038b support default error messages in RequestFailed to avoid checking if message == "Unknown ..." 2008-06-11 15:08:31 -07:00
Pedro Belo
39f3513dae enhance error rescuing in the RequestFailed class; parsing error messages when there's a xml in the response body 2008-06-11 12:31:39 -07:00
Pedro Belo
c515bd8051 use SSL authentication for https requests (based on patch from ardekantur) 2008-06-11 12:26:14 -07:00
Adam Wiggins
8103df07d6 subclass exceptions from RuntimeError 2008-05-01 00:50:14 -07:00
Adam Wiggins
38a23cb26e touchups on Greg's cgi params hash patch 2008-04-04 19:06:16 -07:00
Greg Borenstein
8bbe5b26f4 patched RequestClient.post to treat a payload in the form of a hash as a batch of form-encoded data, including adding the relevant header 2008-03-27 15:54:03 -07:00
Adam Wiggins
02968d3996 Chris Anderson's fix to use full request uri 2008-03-20 18:29:39 -07:00
Adam Wiggins
d66eaab936 RestClient::Resource 2008-03-10 17:20:57 -07:00
Adam Wiggins
15c4bab527 credentials sent via http basic auth 2008-03-10 16:52:59 -07:00
Adam Wiggins
a9f62bf573 refactor calls to Request object to use options hash, to prepare for user authentication and resource objects 2008-03-10 16:43:43 -07:00
Adam Wiggins
15f58e67dd rdocs 2008-03-09 13:31:52 -07:00
Adam Wiggins
06a1afc1e7 README and some rdoc comments 2008-03-09 13:25:18 -07:00
Adam Wiggins
1317e9ce1f remove rexml dependency 2008-03-09 13:15:52 -07:00
Adam Wiggins
d21ba668d9 refactor, creating RestClient::Request for internal use 2008-03-08 17:25:31 -08:00
Adam Wiggins
879fc050b2 all methods take a headers hash, with conversion from symbol format 2008-03-08 16:50:16 -08:00
Adam Wiggins
0de989296a handle http redirects 2008-03-08 16:32:15 -08:00
Adam Wiggins
77848df0d8 don't send nil payloads 2008-03-08 14:42:31 -08:00
Adam Wiggins
993efe4c3e do_request to DRY up the method requests 2008-03-08 14:34:31 -08:00
Adam Wiggins
1ac5a244dc Rest -> RestClient 2008-03-07 22:14:33 -08:00
Adam Wiggins
71b61e8597 init 2008-03-07 17:07:17 -08:00