wrest 1.0.0.beta2-universal-java-1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/CHANGELOG +59 -0
  2. data/LICENCE +7 -0
  3. data/README.rdoc +127 -0
  4. data/bin/wrest +3 -0
  5. data/bin/wrest_shell.rb +21 -0
  6. data/lib/wrest.rb +101 -0
  7. data/lib/wrest.rbc +1900 -0
  8. data/lib/wrest/components.rb +20 -0
  9. data/lib/wrest/components.rbc +217 -0
  10. data/lib/wrest/components/container.rb +185 -0
  11. data/lib/wrest/components/container.rbc +2466 -0
  12. data/lib/wrest/components/container/alias_accessors.rb +66 -0
  13. data/lib/wrest/components/container/alias_accessors.rbc +905 -0
  14. data/lib/wrest/components/container/typecaster.rb +127 -0
  15. data/lib/wrest/components/container/typecaster.rbc +1985 -0
  16. data/lib/wrest/components/mutators.rb +39 -0
  17. data/lib/wrest/components/mutators.rbc +650 -0
  18. data/lib/wrest/components/mutators/base.rb +56 -0
  19. data/lib/wrest/components/mutators/base.rbc +702 -0
  20. data/lib/wrest/components/mutators/camel_to_snake_case.rb +22 -0
  21. data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
  22. data/lib/wrest/components/mutators/xml_mini_type_caster.rb +43 -0
  23. data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
  24. data/lib/wrest/components/mutators/xml_simple_type_caster.rb +37 -0
  25. data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
  26. data/lib/wrest/components/translators.rb +28 -0
  27. data/lib/wrest/components/translators.rbc +517 -0
  28. data/lib/wrest/components/translators/content_types.rb +20 -0
  29. data/lib/wrest/components/translators/content_types.rbc +339 -0
  30. data/lib/wrest/components/translators/json.rb +25 -0
  31. data/lib/wrest/components/translators/json.rbc +462 -0
  32. data/lib/wrest/components/translators/xml.rb +24 -0
  33. data/lib/wrest/components/translators/xml.rbc +457 -0
  34. data/lib/wrest/core_ext/hash.rb +5 -0
  35. data/lib/wrest/core_ext/hash.rbc +182 -0
  36. data/lib/wrest/core_ext/hash/conversions.rb +44 -0
  37. data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
  38. data/lib/wrest/core_ext/string.rb +5 -0
  39. data/lib/wrest/core_ext/string.rbc +182 -0
  40. data/lib/wrest/core_ext/string/conversions.rb +23 -0
  41. data/lib/wrest/core_ext/string/conversions.rbc +471 -0
  42. data/lib/wrest/curl.rb +49 -0
  43. data/lib/wrest/curl.rbc +704 -0
  44. data/lib/wrest/curl/delete.rb +23 -0
  45. data/lib/wrest/curl/get.rb +23 -0
  46. data/lib/wrest/curl/options.rb +16 -0
  47. data/lib/wrest/curl/post.rb +23 -0
  48. data/lib/wrest/curl/put.rb +23 -0
  49. data/lib/wrest/curl/request.rb +97 -0
  50. data/lib/wrest/curl/response.rb +71 -0
  51. data/lib/wrest/curl/session.rb +57 -0
  52. data/lib/wrest/exceptions.rb +33 -0
  53. data/lib/wrest/exceptions.rbc +312 -0
  54. data/lib/wrest/http_shared.rb +23 -0
  55. data/lib/wrest/http_shared.rbc +279 -0
  56. data/lib/wrest/http_shared/headers.rb +343 -0
  57. data/lib/wrest/http_shared/headers.rbc +353 -0
  58. data/lib/wrest/http_shared/standard_headers.rb +21 -0
  59. data/lib/wrest/http_shared/standard_headers.rbc +336 -0
  60. data/lib/wrest/http_shared/standard_tokens.rb +18 -0
  61. data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
  62. data/lib/wrest/multipart.rb +52 -0
  63. data/lib/wrest/native.rb +33 -0
  64. data/lib/wrest/native.rbc +513 -0
  65. data/lib/wrest/native/connection_factory.rb +23 -0
  66. data/lib/wrest/native/connection_factory.rbc +445 -0
  67. data/lib/wrest/native/delete.rb +23 -0
  68. data/lib/wrest/native/delete.rbc +371 -0
  69. data/lib/wrest/native/get.rb +51 -0
  70. data/lib/wrest/native/get.rbc +855 -0
  71. data/lib/wrest/native/options.rb +23 -0
  72. data/lib/wrest/native/options.rbc +347 -0
  73. data/lib/wrest/native/post.rb +23 -0
  74. data/lib/wrest/native/post.rbc +388 -0
  75. data/lib/wrest/native/post_multipart.rb +32 -0
  76. data/lib/wrest/native/put.rb +23 -0
  77. data/lib/wrest/native/put.rbc +388 -0
  78. data/lib/wrest/native/put_multipart.rb +32 -0
  79. data/lib/wrest/native/redirection.rb +38 -0
  80. data/lib/wrest/native/redirection.rbc +520 -0
  81. data/lib/wrest/native/request.rb +94 -0
  82. data/lib/wrest/native/request.rbc +1675 -0
  83. data/lib/wrest/native/response.rb +120 -0
  84. data/lib/wrest/native/response.rbc +2150 -0
  85. data/lib/wrest/native/session.rb +57 -0
  86. data/lib/wrest/native/session.rbc +1372 -0
  87. data/lib/wrest/resource.rb +18 -0
  88. data/lib/wrest/resource.rbc +163 -0
  89. data/lib/wrest/resource/base.rb +99 -0
  90. data/lib/wrest/resource/base.rbc +2115 -0
  91. data/lib/wrest/resource/collection.rb +12 -0
  92. data/lib/wrest/resource/state.rb +6 -0
  93. data/lib/wrest/test.rb +1 -0
  94. data/lib/wrest/test/request_patches.rb +5 -0
  95. data/lib/wrest/uri.rb +160 -0
  96. data/lib/wrest/uri.rbc +2599 -0
  97. data/lib/wrest/uri_template.rb +49 -0
  98. data/lib/wrest/uri_template.rbc +505 -0
  99. data/lib/wrest/version.rb +23 -0
  100. data/lib/wrest/version.rbc +372 -0
  101. metadata +231 -0
@@ -0,0 +1,94 @@
1
+ # Copyright 2009 Sidu Ponnappa
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ # Unless required by applicable law or agreed to in writing, software distributed under the License
7
+ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8
+ # See the License for the specific language governing permissions and limitations under the License.
9
+
10
+ module Wrest::Native
11
+ # This represents a HTTP request. Typically you will never need to instantiate
12
+ # one of these yourself - you can use one of the more conveient APIs via Wrest::Uri
13
+ # or Wrest::Native::Get etc. instead.
14
+ class Request
15
+ attr_reader :http_request, :uri, :body, :headers, :username, :password, :follow_redirects,
16
+ :follow_redirects_limit, :follow_redirects_count, :timeout, :connection, :parameters, :cache_store
17
+ # Valid tuples for the options are:
18
+ # :username => String, defaults to nil
19
+ # :password => String, defaults to nil
20
+ # :follow_redirects => Boolean, defaults to true for Get, false for anything else
21
+ # :follow_redirects_limit => Integer, defaults to 5. This is the number of redirects
22
+ # that Wrest will automatically follow before raising an
23
+ # Wrest::Exceptions::AutoRedirectLimitExceeded exception.
24
+ # For example, if you set this to 1, the very first redirect
25
+ # will raise the exception.
26
+ # :follow_redirects_count => Integer, defaults to 0. This is a count of the hops made to
27
+ # get to this request and increases by one for every redirect
28
+ # until the follow_redirects_limit is hit. You should never set
29
+ # this option yourself.
30
+ # :timeout => The period, in seconds, after which a Timeout::Error is raised
31
+ # in the event of a connection failing to open. Defaulted to 60 by Uri#create_connection.
32
+ # :connection => The HTTP Connection object to use. This is how a keep-alive connection can be
33
+ # used for multiple requests.
34
+ # :cache_store => The object which should be used as cache store for cacheable responses
35
+ def initialize(wrest_uri, http_request_klass, parameters = {}, body = nil, headers = {}, options = {})
36
+ @uri = wrest_uri
37
+ @headers = headers.stringify_keys
38
+ @parameters = parameters
39
+ @body = body
40
+ @options = options.clone
41
+ @username = @options[:username]
42
+ @password = @options[:password]
43
+ @follow_redirects = (@options[:follow_redirects] ||= false)
44
+ @follow_redirects_count = (@options[:follow_redirects_count] ||= 0)
45
+ @follow_redirects_limit = (@options[:follow_redirects_limit] ||= 5)
46
+ @timeout = @options[:timeout]
47
+ @connection = @options[:connection]
48
+ @http_request = self.build_request(http_request_klass, @uri, @parameters, @headers)
49
+ @cache_store = options[:cache_store]
50
+ end
51
+
52
+ # Makes a request and returns a Wrest::Native::Response.
53
+ # Data about the request is and logged to Wrest.logger
54
+ # The log entry contains the following information:
55
+ #
56
+ # --> indicates a request
57
+ # <-- indicates a response
58
+ #
59
+ # The type of request is mentioned in caps, followed by a hash
60
+ # uniquely uniquely identifying a particular request/response pair.
61
+ # In a multi-process or multi-threaded scenario, this can be used
62
+ # to identify request-response pairs.
63
+ #
64
+ # The request hash is followed by a connection hash; requests using the
65
+ # same connection (effectively a keep-alive connection) will have the
66
+ # same connection hash.
67
+ #
68
+ # This is followed by the response code, the payload size and the time taken.
69
+ def invoke
70
+ response = nil
71
+
72
+ @connection ||= @uri.create_connection(timeout)
73
+ http_request.basic_auth username, password unless username.nil? || password.nil?
74
+
75
+ prefix = "#{http_request.method} #{http_request.hash} #{@connection.hash}"
76
+
77
+ Wrest.logger.debug "--> (#{prefix}) #{@uri.protocol}://#{@uri.host}:#{@uri.port}#{@http_request.path}"
78
+ time = Benchmark.realtime { response = Wrest::Native::Response.new( do_request ) }
79
+ Wrest.logger.debug "<-- (#{prefix}) %d %s (%d bytes %.2fs)" % [response.code, response.message, response.body ? response.body.length : 0, time]
80
+
81
+ @follow_redirects ? response.follow(@options) : response
82
+ rescue Timeout::Error => e
83
+ raise Wrest::Exceptions::Timeout.new(e)
84
+ end
85
+
86
+ def build_request(request_klass, uri, parameters, headers)
87
+ request_klass.new(parameters.empty? ? uri.full_path : "#{uri.full_path}?#{parameters.to_query}", headers)
88
+ end
89
+
90
+ def do_request
91
+ @connection.request(@http_request, @body)
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,1675 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 30
13
+ 99
14
+ 7
15
+ 0
16
+ 45
17
+ 1
18
+ 2
19
+ 49
20
+ 3
21
+ 2
22
+ 13
23
+ 99
24
+ 12
25
+ 7
26
+ 4
27
+ 12
28
+ 7
29
+ 5
30
+ 12
31
+ 65
32
+ 12
33
+ 49
34
+ 6
35
+ 4
36
+ 15
37
+ 49
38
+ 4
39
+ 0
40
+ 15
41
+ 2
42
+ 11
43
+ I
44
+ 6
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ I
50
+ 0
51
+ n
52
+ p
53
+ 7
54
+ x
55
+ 6
56
+ Native
57
+ x
58
+ 5
59
+ Wrest
60
+ n
61
+ x
62
+ 17
63
+ open_module_under
64
+ x
65
+ 15
66
+ __module_init__
67
+ M
68
+ 1
69
+ n
70
+ n
71
+ x
72
+ 6
73
+ Native
74
+ i
75
+ 29
76
+ 5
77
+ 66
78
+ 99
79
+ 7
80
+ 0
81
+ 1
82
+ 65
83
+ 49
84
+ 1
85
+ 3
86
+ 13
87
+ 99
88
+ 12
89
+ 7
90
+ 2
91
+ 12
92
+ 7
93
+ 3
94
+ 12
95
+ 65
96
+ 12
97
+ 49
98
+ 4
99
+ 4
100
+ 15
101
+ 49
102
+ 2
103
+ 0
104
+ 11
105
+ I
106
+ 6
107
+ I
108
+ 0
109
+ I
110
+ 0
111
+ I
112
+ 0
113
+ n
114
+ p
115
+ 5
116
+ x
117
+ 7
118
+ Request
119
+ x
120
+ 10
121
+ open_class
122
+ x
123
+ 14
124
+ __class_init__
125
+ M
126
+ 1
127
+ n
128
+ n
129
+ x
130
+ 7
131
+ Request
132
+ i
133
+ 90
134
+ 5
135
+ 66
136
+ 5
137
+ 7
138
+ 0
139
+ 7
140
+ 1
141
+ 7
142
+ 2
143
+ 7
144
+ 3
145
+ 7
146
+ 4
147
+ 7
148
+ 5
149
+ 7
150
+ 6
151
+ 7
152
+ 7
153
+ 7
154
+ 8
155
+ 7
156
+ 9
157
+ 7
158
+ 10
159
+ 7
160
+ 11
161
+ 7
162
+ 12
163
+ 47
164
+ 49
165
+ 13
166
+ 13
167
+ 15
168
+ 99
169
+ 7
170
+ 14
171
+ 7
172
+ 15
173
+ 65
174
+ 67
175
+ 49
176
+ 16
177
+ 0
178
+ 49
179
+ 17
180
+ 4
181
+ 15
182
+ 99
183
+ 7
184
+ 18
185
+ 7
186
+ 19
187
+ 65
188
+ 67
189
+ 49
190
+ 16
191
+ 0
192
+ 49
193
+ 17
194
+ 4
195
+ 15
196
+ 99
197
+ 7
198
+ 20
199
+ 7
200
+ 21
201
+ 65
202
+ 67
203
+ 49
204
+ 16
205
+ 0
206
+ 49
207
+ 17
208
+ 4
209
+ 15
210
+ 99
211
+ 7
212
+ 22
213
+ 7
214
+ 23
215
+ 65
216
+ 67
217
+ 49
218
+ 16
219
+ 0
220
+ 49
221
+ 17
222
+ 4
223
+ 11
224
+ I
225
+ e
226
+ I
227
+ 0
228
+ I
229
+ 0
230
+ I
231
+ 0
232
+ n
233
+ p
234
+ 24
235
+ x
236
+ 12
237
+ http_request
238
+ x
239
+ 3
240
+ uri
241
+ x
242
+ 4
243
+ body
244
+ x
245
+ 7
246
+ headers
247
+ x
248
+ 8
249
+ username
250
+ x
251
+ 8
252
+ password
253
+ x
254
+ 16
255
+ follow_redirects
256
+ x
257
+ 22
258
+ follow_redirects_limit
259
+ x
260
+ 22
261
+ follow_redirects_count
262
+ x
263
+ 7
264
+ timeout
265
+ x
266
+ 10
267
+ connection
268
+ x
269
+ 10
270
+ parameters
271
+ x
272
+ 11
273
+ cache_store
274
+ x
275
+ 11
276
+ attr_reader
277
+ x
278
+ 10
279
+ initialize
280
+ M
281
+ 1
282
+ n
283
+ n
284
+ x
285
+ 10
286
+ initialize
287
+ i
288
+ 237
289
+ 23
290
+ 2
291
+ 10
292
+ 14
293
+ 44
294
+ 43
295
+ 0
296
+ 78
297
+ 49
298
+ 1
299
+ 1
300
+ 19
301
+ 2
302
+ 15
303
+ 23
304
+ 3
305
+ 10
306
+ 22
307
+ 1
308
+ 19
309
+ 3
310
+ 15
311
+ 23
312
+ 4
313
+ 10
314
+ 36
315
+ 44
316
+ 43
317
+ 0
318
+ 78
319
+ 49
320
+ 1
321
+ 1
322
+ 19
323
+ 4
324
+ 15
325
+ 23
326
+ 5
327
+ 10
328
+ 50
329
+ 44
330
+ 43
331
+ 0
332
+ 78
333
+ 49
334
+ 1
335
+ 1
336
+ 19
337
+ 5
338
+ 15
339
+ 20
340
+ 0
341
+ 38
342
+ 2
343
+ 15
344
+ 20
345
+ 4
346
+ 49
347
+ 3
348
+ 0
349
+ 38
350
+ 4
351
+ 15
352
+ 20
353
+ 2
354
+ 38
355
+ 5
356
+ 15
357
+ 20
358
+ 3
359
+ 38
360
+ 6
361
+ 15
362
+ 20
363
+ 5
364
+ 49
365
+ 7
366
+ 0
367
+ 38
368
+ 8
369
+ 15
370
+ 39
371
+ 8
372
+ 7
373
+ 9
374
+ 49
375
+ 10
376
+ 1
377
+ 38
378
+ 11
379
+ 15
380
+ 39
381
+ 8
382
+ 7
383
+ 12
384
+ 49
385
+ 10
386
+ 1
387
+ 38
388
+ 13
389
+ 15
390
+ 39
391
+ 8
392
+ 7
393
+ 14
394
+ 14
395
+ 2
396
+ 49
397
+ 10
398
+ 1
399
+ 13
400
+ 10
401
+ 124
402
+ 15
403
+ 3
404
+ 13
405
+ 18
406
+ 3
407
+ 49
408
+ 15
409
+ 2
410
+ 15
411
+ 8
412
+ 128
413
+ 18
414
+ 2
415
+ 16
416
+ 2
417
+ 38
418
+ 16
419
+ 15
420
+ 39
421
+ 8
422
+ 7
423
+ 17
424
+ 14
425
+ 2
426
+ 49
427
+ 10
428
+ 1
429
+ 13
430
+ 10
431
+ 154
432
+ 15
433
+ 78
434
+ 13
435
+ 18
436
+ 3
437
+ 49
438
+ 15
439
+ 2
440
+ 15
441
+ 8
442
+ 158
443
+ 18
444
+ 2
445
+ 16
446
+ 2
447
+ 38
448
+ 18
449
+ 15
450
+ 39
451
+ 8
452
+ 7
453
+ 19
454
+ 14
455
+ 2
456
+ 49
457
+ 10
458
+ 1
459
+ 13
460
+ 10
461
+ 185
462
+ 15
463
+ 4
464
+ 5
465
+ 13
466
+ 18
467
+ 3
468
+ 49
469
+ 15
470
+ 2
471
+ 15
472
+ 8
473
+ 189
474
+ 18
475
+ 2
476
+ 16
477
+ 2
478
+ 38
479
+ 20
480
+ 15
481
+ 39
482
+ 8
483
+ 7
484
+ 21
485
+ 49
486
+ 10
487
+ 1
488
+ 38
489
+ 22
490
+ 15
491
+ 39
492
+ 8
493
+ 7
494
+ 23
495
+ 49
496
+ 10
497
+ 1
498
+ 38
499
+ 24
500
+ 15
501
+ 5
502
+ 20
503
+ 1
504
+ 39
505
+ 2
506
+ 39
507
+ 5
508
+ 39
509
+ 4
510
+ 49
511
+ 25
512
+ 4
513
+ 38
514
+ 26
515
+ 15
516
+ 20
517
+ 5
518
+ 7
519
+ 27
520
+ 49
521
+ 10
522
+ 1
523
+ 38
524
+ 28
525
+ 11
526
+ I
527
+ b
528
+ I
529
+ 6
530
+ I
531
+ 2
532
+ I
533
+ 6
534
+ n
535
+ p
536
+ 29
537
+ x
538
+ 4
539
+ Hash
540
+ x
541
+ 16
542
+ new_from_literal
543
+ x
544
+ 4
545
+ @uri
546
+ x
547
+ 14
548
+ stringify_keys
549
+ x
550
+ 8
551
+ @headers
552
+ x
553
+ 11
554
+ @parameters
555
+ x
556
+ 5
557
+ @body
558
+ x
559
+ 5
560
+ clone
561
+ x
562
+ 8
563
+ @options
564
+ x
565
+ 8
566
+ username
567
+ x
568
+ 2
569
+ []
570
+ x
571
+ 9
572
+ @username
573
+ x
574
+ 8
575
+ password
576
+ x
577
+ 9
578
+ @password
579
+ x
580
+ 16
581
+ follow_redirects
582
+ x
583
+ 3
584
+ []=
585
+ x
586
+ 17
587
+ @follow_redirects
588
+ x
589
+ 22
590
+ follow_redirects_count
591
+ x
592
+ 23
593
+ @follow_redirects_count
594
+ x
595
+ 22
596
+ follow_redirects_limit
597
+ x
598
+ 23
599
+ @follow_redirects_limit
600
+ x
601
+ 7
602
+ timeout
603
+ x
604
+ 8
605
+ @timeout
606
+ x
607
+ 10
608
+ connection
609
+ x
610
+ 11
611
+ @connection
612
+ x
613
+ 13
614
+ build_request
615
+ x
616
+ 13
617
+ @http_request
618
+ x
619
+ 11
620
+ cache_store
621
+ x
622
+ 12
623
+ @cache_store
624
+ p
625
+ 31
626
+ I
627
+ 0
628
+ I
629
+ 23
630
+ I
631
+ 32
632
+ I
633
+ 24
634
+ I
635
+ 37
636
+ I
637
+ 25
638
+ I
639
+ 3f
640
+ I
641
+ 26
642
+ I
643
+ 44
644
+ I
645
+ 27
646
+ I
647
+ 49
648
+ I
649
+ 28
650
+ I
651
+ 51
652
+ I
653
+ 29
654
+ I
655
+ 5b
656
+ I
657
+ 2a
658
+ I
659
+ 65
660
+ I
661
+ 2b
662
+ I
663
+ 83
664
+ I
665
+ 2c
666
+ I
667
+ a1
668
+ I
669
+ 2d
670
+ I
671
+ c0
672
+ I
673
+ 2e
674
+ I
675
+ ca
676
+ I
677
+ 2f
678
+ I
679
+ d4
680
+ I
681
+ 30
682
+ I
683
+ e3
684
+ I
685
+ 31
686
+ I
687
+ ed
688
+ x
689
+ 50
690
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
691
+ p
692
+ 6
693
+ x
694
+ 9
695
+ wrest_uri
696
+ x
697
+ 18
698
+ http_request_klass
699
+ x
700
+ 10
701
+ parameters
702
+ x
703
+ 4
704
+ body
705
+ x
706
+ 7
707
+ headers
708
+ x
709
+ 7
710
+ options
711
+ x
712
+ 17
713
+ method_visibility
714
+ x
715
+ 15
716
+ add_defn_method
717
+ x
718
+ 6
719
+ invoke
720
+ M
721
+ 1
722
+ n
723
+ n
724
+ x
725
+ 6
726
+ invoke
727
+ i
728
+ 321
729
+ 26
730
+ 93
731
+ 0
732
+ 15
733
+ 29
734
+ 248
735
+ 0
736
+ 1
737
+ 19
738
+ 0
739
+ 15
740
+ 39
741
+ 0
742
+ 13
743
+ 10
744
+ 27
745
+ 15
746
+ 39
747
+ 1
748
+ 5
749
+ 48
750
+ 2
751
+ 49
752
+ 3
753
+ 1
754
+ 38
755
+ 0
756
+ 15
757
+ 5
758
+ 48
759
+ 4
760
+ 49
761
+ 5
762
+ 0
763
+ 13
764
+ 10
765
+ 44
766
+ 15
767
+ 5
768
+ 48
769
+ 6
770
+ 49
771
+ 5
772
+ 0
773
+ 9
774
+ 49
775
+ 1
776
+ 8
777
+ 61
778
+ 5
779
+ 48
780
+ 7
781
+ 5
782
+ 48
783
+ 4
784
+ 5
785
+ 48
786
+ 6
787
+ 49
788
+ 8
789
+ 2
790
+ 15
791
+ 5
792
+ 48
793
+ 7
794
+ 49
795
+ 9
796
+ 0
797
+ 47
798
+ 49
799
+ 10
800
+ 0
801
+ 7
802
+ 11
803
+ 5
804
+ 48
805
+ 7
806
+ 49
807
+ 12
808
+ 0
809
+ 47
810
+ 49
811
+ 10
812
+ 0
813
+ 7
814
+ 11
815
+ 39
816
+ 0
817
+ 49
818
+ 12
819
+ 0
820
+ 47
821
+ 49
822
+ 10
823
+ 0
824
+ 63
825
+ 5
826
+ 19
827
+ 1
828
+ 15
829
+ 45
830
+ 13
831
+ 14
832
+ 49
833
+ 15
834
+ 0
835
+ 7
836
+ 16
837
+ 20
838
+ 1
839
+ 47
840
+ 49
841
+ 10
842
+ 0
843
+ 7
844
+ 17
845
+ 39
846
+ 1
847
+ 49
848
+ 18
849
+ 0
850
+ 47
851
+ 49
852
+ 10
853
+ 0
854
+ 7
855
+ 19
856
+ 39
857
+ 1
858
+ 49
859
+ 20
860
+ 0
861
+ 47
862
+ 49
863
+ 10
864
+ 0
865
+ 7
866
+ 21
867
+ 39
868
+ 1
869
+ 49
870
+ 22
871
+ 0
872
+ 47
873
+ 49
874
+ 10
875
+ 0
876
+ 39
877
+ 23
878
+ 49
879
+ 24
880
+ 0
881
+ 47
882
+ 49
883
+ 10
884
+ 0
885
+ 63
886
+ 9
887
+ 49
888
+ 25
889
+ 1
890
+ 15
891
+ 45
892
+ 26
893
+ 27
894
+ 56
895
+ 28
896
+ 50
897
+ 29
898
+ 0
899
+ 19
900
+ 2
901
+ 15
902
+ 45
903
+ 13
904
+ 30
905
+ 49
906
+ 15
907
+ 0
908
+ 7
909
+ 31
910
+ 20
911
+ 1
912
+ 47
913
+ 49
914
+ 10
915
+ 0
916
+ 7
917
+ 32
918
+ 63
919
+ 3
920
+ 20
921
+ 0
922
+ 49
923
+ 33
924
+ 0
925
+ 20
926
+ 0
927
+ 49
928
+ 34
929
+ 0
930
+ 20
931
+ 0
932
+ 49
933
+ 35
934
+ 0
935
+ 9
936
+ 218
937
+ 20
938
+ 0
939
+ 49
940
+ 35
941
+ 0
942
+ 49
943
+ 36
944
+ 0
945
+ 8
946
+ 219
947
+ 78
948
+ 20
949
+ 2
950
+ 35
951
+ 4
952
+ 49
953
+ 37
954
+ 1
955
+ 49
956
+ 25
957
+ 1
958
+ 15
959
+ 39
960
+ 38
961
+ 9
962
+ 243
963
+ 20
964
+ 0
965
+ 39
966
+ 39
967
+ 49
968
+ 40
969
+ 1
970
+ 8
971
+ 245
972
+ 20
973
+ 0
974
+ 30
975
+ 8
976
+ 317
977
+ 26
978
+ 93
979
+ 1
980
+ 15
981
+ 24
982
+ 13
983
+ 45
984
+ 41
985
+ 42
986
+ 43
987
+ 43
988
+ 12
989
+ 49
990
+ 44
991
+ 1
992
+ 10
993
+ 267
994
+ 8
995
+ 312
996
+ 15
997
+ 24
998
+ 19
999
+ 3
1000
+ 15
1001
+ 5
1002
+ 45
1003
+ 13
1004
+ 45
1005
+ 43
1006
+ 46
1007
+ 43
1008
+ 41
1009
+ 13
1010
+ 71
1011
+ 47
1012
+ 47
1013
+ 9
1014
+ 300
1015
+ 47
1016
+ 49
1017
+ 48
1018
+ 0
1019
+ 13
1020
+ 20
1021
+ 3
1022
+ 47
1023
+ 49
1024
+ 49
1025
+ 1
1026
+ 15
1027
+ 8
1028
+ 305
1029
+ 20
1030
+ 3
1031
+ 49
1032
+ 47
1033
+ 1
1034
+ 47
1035
+ 49
1036
+ 50
1037
+ 1
1038
+ 25
1039
+ 8
1040
+ 317
1041
+ 15
1042
+ 92
1043
+ 1
1044
+ 27
1045
+ 34
1046
+ 92
1047
+ 0
1048
+ 27
1049
+ 11
1050
+ I
1051
+ 10
1052
+ I
1053
+ 4
1054
+ I
1055
+ 0
1056
+ I
1057
+ 0
1058
+ n
1059
+ p
1060
+ 51
1061
+ x
1062
+ 11
1063
+ @connection
1064
+ x
1065
+ 4
1066
+ @uri
1067
+ x
1068
+ 7
1069
+ timeout
1070
+ x
1071
+ 17
1072
+ create_connection
1073
+ x
1074
+ 8
1075
+ username
1076
+ x
1077
+ 4
1078
+ nil?
1079
+ x
1080
+ 8
1081
+ password
1082
+ x
1083
+ 12
1084
+ http_request
1085
+ x
1086
+ 10
1087
+ basic_auth
1088
+ x
1089
+ 6
1090
+ method
1091
+ x
1092
+ 4
1093
+ to_s
1094
+ s
1095
+ 1
1096
+
1097
+ x
1098
+ 4
1099
+ hash
1100
+ x
1101
+ 5
1102
+ Wrest
1103
+ n
1104
+ x
1105
+ 6
1106
+ logger
1107
+ s
1108
+ 5
1109
+ --> (
1110
+ s
1111
+ 2
1112
+ )
1113
+ x
1114
+ 8
1115
+ protocol
1116
+ s
1117
+ 3
1118
+ ://
1119
+ x
1120
+ 4
1121
+ host
1122
+ s
1123
+ 1
1124
+ :
1125
+ x
1126
+ 4
1127
+ port
1128
+ x
1129
+ 13
1130
+ @http_request
1131
+ x
1132
+ 4
1133
+ path
1134
+ x
1135
+ 5
1136
+ debug
1137
+ x
1138
+ 9
1139
+ Benchmark
1140
+ n
1141
+ M
1142
+ 1
1143
+ p
1144
+ 2
1145
+ x
1146
+ 9
1147
+ for_block
1148
+ t
1149
+ n
1150
+ x
1151
+ 6
1152
+ invoke
1153
+ i
1154
+ 38
1155
+ 45
1156
+ 0
1157
+ 1
1158
+ 43
1159
+ 2
1160
+ 43
1161
+ 3
1162
+ 13
1163
+ 71
1164
+ 4
1165
+ 47
1166
+ 9
1167
+ 28
1168
+ 47
1169
+ 49
1170
+ 5
1171
+ 0
1172
+ 13
1173
+ 5
1174
+ 48
1175
+ 6
1176
+ 47
1177
+ 49
1178
+ 7
1179
+ 1
1180
+ 15
1181
+ 8
1182
+ 34
1183
+ 5
1184
+ 48
1185
+ 6
1186
+ 49
1187
+ 4
1188
+ 1
1189
+ 22
1190
+ 1
1191
+ 0
1192
+ 11
1193
+ I
1194
+ 4
1195
+ I
1196
+ 0
1197
+ I
1198
+ 0
1199
+ I
1200
+ 0
1201
+ I
1202
+ -2
1203
+ p
1204
+ 8
1205
+ x
1206
+ 5
1207
+ Wrest
1208
+ n
1209
+ x
1210
+ 6
1211
+ Native
1212
+ x
1213
+ 8
1214
+ Response
1215
+ x
1216
+ 3
1217
+ new
1218
+ x
1219
+ 8
1220
+ allocate
1221
+ x
1222
+ 10
1223
+ do_request
1224
+ x
1225
+ 10
1226
+ initialize
1227
+ p
1228
+ 3
1229
+ I
1230
+ 0
1231
+ I
1232
+ 4e
1233
+ I
1234
+ 26
1235
+ x
1236
+ 50
1237
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1238
+ p
1239
+ 0
1240
+ x
1241
+ 8
1242
+ realtime
1243
+ n
1244
+ s
1245
+ 5
1246
+ <-- (
1247
+ s
1248
+ 24
1249
+ ) %d %s (%d bytes %.2fs)
1250
+ x
1251
+ 4
1252
+ code
1253
+ x
1254
+ 7
1255
+ message
1256
+ x
1257
+ 4
1258
+ body
1259
+ x
1260
+ 6
1261
+ length
1262
+ x
1263
+ 1
1264
+ %
1265
+ x
1266
+ 17
1267
+ @follow_redirects
1268
+ x
1269
+ 8
1270
+ @options
1271
+ x
1272
+ 6
1273
+ follow
1274
+ x
1275
+ 7
1276
+ Timeout
1277
+ n
1278
+ x
1279
+ 5
1280
+ Error
1281
+ x
1282
+ 3
1283
+ ===
1284
+ n
1285
+ x
1286
+ 10
1287
+ Exceptions
1288
+ x
1289
+ 3
1290
+ new
1291
+ x
1292
+ 8
1293
+ allocate
1294
+ x
1295
+ 10
1296
+ initialize
1297
+ x
1298
+ 5
1299
+ raise
1300
+ p
1301
+ 25
1302
+ I
1303
+ 0
1304
+ I
1305
+ 45
1306
+ I
1307
+ 0
1308
+ I
1309
+ 46
1310
+ I
1311
+ b
1312
+ I
1313
+ 48
1314
+ I
1315
+ 1c
1316
+ I
1317
+ 49
1318
+ I
1319
+ 3e
1320
+ I
1321
+ 4b
1322
+ I
1323
+ 64
1324
+ I
1325
+ 4d
1326
+ I
1327
+ a2
1328
+ I
1329
+ 4e
1330
+ I
1331
+ ad
1332
+ I
1333
+ 4f
1334
+ I
1335
+ e6
1336
+ I
1337
+ 51
1338
+ I
1339
+ fd
1340
+ I
1341
+ 52
1342
+ I
1343
+ 10c
1344
+ I
1345
+ 54
1346
+ I
1347
+ 110
1348
+ I
1349
+ 53
1350
+ I
1351
+ 141
1352
+ x
1353
+ 50
1354
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1355
+ p
1356
+ 4
1357
+ x
1358
+ 8
1359
+ response
1360
+ x
1361
+ 6
1362
+ prefix
1363
+ x
1364
+ 4
1365
+ time
1366
+ x
1367
+ 1
1368
+ e
1369
+ x
1370
+ 13
1371
+ build_request
1372
+ M
1373
+ 1
1374
+ n
1375
+ n
1376
+ x
1377
+ 13
1378
+ build_request
1379
+ i
1380
+ 100
1381
+ 20
1382
+ 0
1383
+ 13
1384
+ 71
1385
+ 0
1386
+ 47
1387
+ 9
1388
+ 58
1389
+ 47
1390
+ 49
1391
+ 1
1392
+ 0
1393
+ 13
1394
+ 20
1395
+ 2
1396
+ 49
1397
+ 2
1398
+ 0
1399
+ 9
1400
+ 27
1401
+ 20
1402
+ 1
1403
+ 49
1404
+ 3
1405
+ 0
1406
+ 8
1407
+ 49
1408
+ 20
1409
+ 1
1410
+ 49
1411
+ 3
1412
+ 0
1413
+ 47
1414
+ 49
1415
+ 4
1416
+ 0
1417
+ 7
1418
+ 5
1419
+ 20
1420
+ 2
1421
+ 49
1422
+ 6
1423
+ 0
1424
+ 47
1425
+ 49
1426
+ 4
1427
+ 0
1428
+ 63
1429
+ 3
1430
+ 20
1431
+ 3
1432
+ 47
1433
+ 49
1434
+ 7
1435
+ 2
1436
+ 15
1437
+ 8
1438
+ 99
1439
+ 20
1440
+ 2
1441
+ 49
1442
+ 2
1443
+ 0
1444
+ 9
1445
+ 72
1446
+ 20
1447
+ 1
1448
+ 49
1449
+ 3
1450
+ 0
1451
+ 8
1452
+ 94
1453
+ 20
1454
+ 1
1455
+ 49
1456
+ 3
1457
+ 0
1458
+ 47
1459
+ 49
1460
+ 4
1461
+ 0
1462
+ 7
1463
+ 5
1464
+ 20
1465
+ 2
1466
+ 49
1467
+ 6
1468
+ 0
1469
+ 47
1470
+ 49
1471
+ 4
1472
+ 0
1473
+ 63
1474
+ 3
1475
+ 20
1476
+ 3
1477
+ 49
1478
+ 0
1479
+ 2
1480
+ 11
1481
+ I
1482
+ 9
1483
+ I
1484
+ 4
1485
+ I
1486
+ 4
1487
+ I
1488
+ 4
1489
+ n
1490
+ p
1491
+ 8
1492
+ x
1493
+ 3
1494
+ new
1495
+ x
1496
+ 8
1497
+ allocate
1498
+ x
1499
+ 6
1500
+ empty?
1501
+ x
1502
+ 9
1503
+ full_path
1504
+ x
1505
+ 4
1506
+ to_s
1507
+ s
1508
+ 1
1509
+ ?
1510
+ x
1511
+ 8
1512
+ to_query
1513
+ x
1514
+ 10
1515
+ initialize
1516
+ p
1517
+ 5
1518
+ I
1519
+ 0
1520
+ I
1521
+ 56
1522
+ I
1523
+ 0
1524
+ I
1525
+ 57
1526
+ I
1527
+ 64
1528
+ x
1529
+ 50
1530
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1531
+ p
1532
+ 4
1533
+ x
1534
+ 13
1535
+ request_klass
1536
+ x
1537
+ 3
1538
+ uri
1539
+ x
1540
+ 10
1541
+ parameters
1542
+ x
1543
+ 7
1544
+ headers
1545
+ x
1546
+ 10
1547
+ do_request
1548
+ M
1549
+ 1
1550
+ n
1551
+ n
1552
+ x
1553
+ 10
1554
+ do_request
1555
+ i
1556
+ 10
1557
+ 39
1558
+ 0
1559
+ 39
1560
+ 1
1561
+ 39
1562
+ 2
1563
+ 49
1564
+ 3
1565
+ 2
1566
+ 11
1567
+ I
1568
+ 3
1569
+ I
1570
+ 0
1571
+ I
1572
+ 0
1573
+ I
1574
+ 0
1575
+ n
1576
+ p
1577
+ 4
1578
+ x
1579
+ 11
1580
+ @connection
1581
+ x
1582
+ 13
1583
+ @http_request
1584
+ x
1585
+ 5
1586
+ @body
1587
+ x
1588
+ 7
1589
+ request
1590
+ p
1591
+ 5
1592
+ I
1593
+ 0
1594
+ I
1595
+ 5a
1596
+ I
1597
+ 0
1598
+ I
1599
+ 5b
1600
+ I
1601
+ a
1602
+ x
1603
+ 50
1604
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1605
+ p
1606
+ 0
1607
+ p
1608
+ 15
1609
+ I
1610
+ 2
1611
+ I
1612
+ f
1613
+ I
1614
+ 11
1615
+ I
1616
+ 10
1617
+ I
1618
+ 1d
1619
+ I
1620
+ f
1621
+ I
1622
+ 22
1623
+ I
1624
+ 23
1625
+ I
1626
+ 30
1627
+ I
1628
+ 45
1629
+ I
1630
+ 3e
1631
+ I
1632
+ 56
1633
+ I
1634
+ 4c
1635
+ I
1636
+ 5a
1637
+ I
1638
+ 5a
1639
+ x
1640
+ 50
1641
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1642
+ p
1643
+ 0
1644
+ x
1645
+ 13
1646
+ attach_method
1647
+ p
1648
+ 3
1649
+ I
1650
+ 2
1651
+ I
1652
+ e
1653
+ I
1654
+ 1d
1655
+ x
1656
+ 50
1657
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1658
+ p
1659
+ 0
1660
+ x
1661
+ 13
1662
+ attach_method
1663
+ p
1664
+ 3
1665
+ I
1666
+ 0
1667
+ I
1668
+ a
1669
+ I
1670
+ 1e
1671
+ x
1672
+ 50
1673
+ /Users/sidu/Work/wrest/lib/wrest/native/request.rb
1674
+ p
1675
+ 0