wrest 1.0.0.beta2-universal-java-1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,57 @@
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 class is a wrapper for a keep-alive HTTP connection. It simply passes the
12
+ # same connection instance as an option to all Wrest::Http::Request instances created using it.
13
+ #
14
+ # If at any point the server closes an existing connection during a Session by returning a
15
+ # Connection: Close header the current connection is destroyed and a fresh one created for the next
16
+ # request.
17
+ #
18
+ # The Session constructor can accept either a String URI or a Wrest::Uri as a parameter. If you
19
+ # need HTTP authentication, you should use a Wrest::Uri.
20
+ class Session
21
+ attr_reader :uri
22
+ def initialize(uri)
23
+ @uri = uri.is_a?(String) ? uri.to_uri : uri
24
+ @default_headers = { Wrest::Native::StandardHeaders::Connection => Wrest::Native::StandardTokens::KeepAlive }
25
+
26
+ yield(self) if block_given?
27
+ end
28
+
29
+ def connection
30
+ @connection ||= @uri.create_connection
31
+ end
32
+
33
+ def get(path = '', parameters = {}, headers = {})
34
+ maybe_destroy_connection @uri[path, {:connection => self.connection}].get(parameters, headers.merge(@default_headers))
35
+ end
36
+
37
+ def post(path = '', body = '', headers = {}, params = {})
38
+ maybe_destroy_connection @uri[path, {:connection => self.connection}].post(body, headers.merge(@default_headers), params)
39
+ end
40
+
41
+ def put(path = '', body = '', headers = {}, params = {})
42
+ maybe_destroy_connection @uri[path, {:connection => self.connection}].put(body, headers.merge(@default_headers), params)
43
+ end
44
+
45
+ def delete(path = '', parameters = {}, headers = {})
46
+ maybe_destroy_connection @uri[path, {:connection => self.connection}].delete(parameters, headers.merge(@default_headers))
47
+ end
48
+
49
+ def maybe_destroy_connection(response)
50
+ if response.connection_closed?
51
+ Wrest.logger.warn "Connection #{@connection.hash} has been closed by the server"
52
+ @connection = nil
53
+ end
54
+ response
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,1372 @@
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
+ Session
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
+ Session
132
+ i
133
+ 108
134
+ 5
135
+ 66
136
+ 5
137
+ 7
138
+ 0
139
+ 47
140
+ 49
141
+ 1
142
+ 1
143
+ 15
144
+ 99
145
+ 7
146
+ 2
147
+ 7
148
+ 3
149
+ 65
150
+ 67
151
+ 49
152
+ 4
153
+ 0
154
+ 49
155
+ 5
156
+ 4
157
+ 15
158
+ 99
159
+ 7
160
+ 6
161
+ 7
162
+ 7
163
+ 65
164
+ 67
165
+ 49
166
+ 4
167
+ 0
168
+ 49
169
+ 5
170
+ 4
171
+ 15
172
+ 99
173
+ 7
174
+ 8
175
+ 7
176
+ 9
177
+ 65
178
+ 67
179
+ 49
180
+ 4
181
+ 0
182
+ 49
183
+ 5
184
+ 4
185
+ 15
186
+ 99
187
+ 7
188
+ 10
189
+ 7
190
+ 11
191
+ 65
192
+ 67
193
+ 49
194
+ 4
195
+ 0
196
+ 49
197
+ 5
198
+ 4
199
+ 15
200
+ 99
201
+ 7
202
+ 12
203
+ 7
204
+ 13
205
+ 65
206
+ 67
207
+ 49
208
+ 4
209
+ 0
210
+ 49
211
+ 5
212
+ 4
213
+ 15
214
+ 99
215
+ 7
216
+ 14
217
+ 7
218
+ 15
219
+ 65
220
+ 67
221
+ 49
222
+ 4
223
+ 0
224
+ 49
225
+ 5
226
+ 4
227
+ 15
228
+ 99
229
+ 7
230
+ 16
231
+ 7
232
+ 17
233
+ 65
234
+ 67
235
+ 49
236
+ 4
237
+ 0
238
+ 49
239
+ 5
240
+ 4
241
+ 11
242
+ I
243
+ 5
244
+ I
245
+ 0
246
+ I
247
+ 0
248
+ I
249
+ 0
250
+ n
251
+ p
252
+ 18
253
+ x
254
+ 3
255
+ uri
256
+ x
257
+ 11
258
+ attr_reader
259
+ x
260
+ 10
261
+ initialize
262
+ M
263
+ 1
264
+ n
265
+ n
266
+ x
267
+ 10
268
+ initialize
269
+ i
270
+ 65
271
+ 20
272
+ 0
273
+ 45
274
+ 0
275
+ 1
276
+ 49
277
+ 2
278
+ 1
279
+ 9
280
+ 17
281
+ 20
282
+ 0
283
+ 49
284
+ 3
285
+ 0
286
+ 8
287
+ 19
288
+ 20
289
+ 0
290
+ 38
291
+ 4
292
+ 15
293
+ 44
294
+ 43
295
+ 5
296
+ 79
297
+ 49
298
+ 6
299
+ 1
300
+ 13
301
+ 45
302
+ 7
303
+ 8
304
+ 43
305
+ 9
306
+ 43
307
+ 10
308
+ 43
309
+ 11
310
+ 45
311
+ 7
312
+ 12
313
+ 43
314
+ 9
315
+ 43
316
+ 13
317
+ 43
318
+ 14
319
+ 49
320
+ 15
321
+ 2
322
+ 15
323
+ 38
324
+ 16
325
+ 15
326
+ 94
327
+ 9
328
+ 63
329
+ 5
330
+ 60
331
+ 1
332
+ 8
333
+ 64
334
+ 1
335
+ 11
336
+ I
337
+ 5
338
+ I
339
+ 1
340
+ I
341
+ 1
342
+ I
343
+ 1
344
+ n
345
+ p
346
+ 17
347
+ x
348
+ 6
349
+ String
350
+ n
351
+ x
352
+ 5
353
+ is_a?
354
+ x
355
+ 6
356
+ to_uri
357
+ x
358
+ 4
359
+ @uri
360
+ x
361
+ 4
362
+ Hash
363
+ x
364
+ 16
365
+ new_from_literal
366
+ x
367
+ 5
368
+ Wrest
369
+ n
370
+ x
371
+ 6
372
+ Native
373
+ x
374
+ 15
375
+ StandardHeaders
376
+ x
377
+ 10
378
+ Connection
379
+ n
380
+ x
381
+ 14
382
+ StandardTokens
383
+ x
384
+ 9
385
+ KeepAlive
386
+ x
387
+ 3
388
+ []=
389
+ x
390
+ 16
391
+ @default_headers
392
+ p
393
+ 9
394
+ I
395
+ 0
396
+ I
397
+ 16
398
+ I
399
+ 0
400
+ I
401
+ 17
402
+ I
403
+ 16
404
+ I
405
+ 18
406
+ I
407
+ 37
408
+ I
409
+ 1a
410
+ I
411
+ 41
412
+ x
413
+ 50
414
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
415
+ p
416
+ 1
417
+ x
418
+ 3
419
+ uri
420
+ x
421
+ 17
422
+ method_visibility
423
+ x
424
+ 15
425
+ add_defn_method
426
+ x
427
+ 10
428
+ connection
429
+ M
430
+ 1
431
+ n
432
+ n
433
+ x
434
+ 10
435
+ connection
436
+ i
437
+ 14
438
+ 39
439
+ 0
440
+ 13
441
+ 10
442
+ 13
443
+ 15
444
+ 39
445
+ 1
446
+ 49
447
+ 2
448
+ 0
449
+ 38
450
+ 0
451
+ 11
452
+ I
453
+ 2
454
+ I
455
+ 0
456
+ I
457
+ 0
458
+ I
459
+ 0
460
+ n
461
+ p
462
+ 3
463
+ x
464
+ 11
465
+ @connection
466
+ x
467
+ 4
468
+ @uri
469
+ x
470
+ 17
471
+ create_connection
472
+ p
473
+ 5
474
+ I
475
+ 0
476
+ I
477
+ 1d
478
+ I
479
+ 0
480
+ I
481
+ 1e
482
+ I
483
+ e
484
+ x
485
+ 50
486
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
487
+ p
488
+ 0
489
+ x
490
+ 3
491
+ get
492
+ M
493
+ 1
494
+ n
495
+ n
496
+ x
497
+ 3
498
+ get
499
+ i
500
+ 81
501
+ 23
502
+ 0
503
+ 10
504
+ 10
505
+ 7
506
+ 0
507
+ 64
508
+ 19
509
+ 0
510
+ 15
511
+ 23
512
+ 1
513
+ 10
514
+ 24
515
+ 44
516
+ 43
517
+ 1
518
+ 78
519
+ 49
520
+ 2
521
+ 1
522
+ 19
523
+ 1
524
+ 15
525
+ 23
526
+ 2
527
+ 10
528
+ 38
529
+ 44
530
+ 43
531
+ 1
532
+ 78
533
+ 49
534
+ 2
535
+ 1
536
+ 19
537
+ 2
538
+ 15
539
+ 5
540
+ 39
541
+ 3
542
+ 20
543
+ 0
544
+ 44
545
+ 43
546
+ 1
547
+ 79
548
+ 49
549
+ 2
550
+ 1
551
+ 13
552
+ 7
553
+ 4
554
+ 5
555
+ 49
556
+ 4
557
+ 0
558
+ 49
559
+ 5
560
+ 2
561
+ 15
562
+ 49
563
+ 6
564
+ 2
565
+ 20
566
+ 1
567
+ 20
568
+ 2
569
+ 39
570
+ 7
571
+ 49
572
+ 8
573
+ 1
574
+ 49
575
+ 9
576
+ 2
577
+ 47
578
+ 49
579
+ 10
580
+ 1
581
+ 11
582
+ I
583
+ a
584
+ I
585
+ 3
586
+ I
587
+ 0
588
+ I
589
+ 3
590
+ n
591
+ p
592
+ 11
593
+ s
594
+ 0
595
+
596
+ x
597
+ 4
598
+ Hash
599
+ x
600
+ 16
601
+ new_from_literal
602
+ x
603
+ 4
604
+ @uri
605
+ x
606
+ 10
607
+ connection
608
+ x
609
+ 3
610
+ []=
611
+ x
612
+ 2
613
+ []
614
+ x
615
+ 16
616
+ @default_headers
617
+ x
618
+ 5
619
+ merge
620
+ x
621
+ 3
622
+ get
623
+ x
624
+ 24
625
+ maybe_destroy_connection
626
+ p
627
+ 5
628
+ I
629
+ 0
630
+ I
631
+ 21
632
+ I
633
+ 26
634
+ I
635
+ 22
636
+ I
637
+ 51
638
+ x
639
+ 50
640
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
641
+ p
642
+ 3
643
+ x
644
+ 4
645
+ path
646
+ x
647
+ 10
648
+ parameters
649
+ x
650
+ 7
651
+ headers
652
+ x
653
+ 4
654
+ post
655
+ M
656
+ 1
657
+ n
658
+ n
659
+ x
660
+ 4
661
+ post
662
+ i
663
+ 93
664
+ 23
665
+ 0
666
+ 10
667
+ 10
668
+ 7
669
+ 0
670
+ 64
671
+ 19
672
+ 0
673
+ 15
674
+ 23
675
+ 1
676
+ 10
677
+ 20
678
+ 7
679
+ 0
680
+ 64
681
+ 19
682
+ 1
683
+ 15
684
+ 23
685
+ 2
686
+ 10
687
+ 34
688
+ 44
689
+ 43
690
+ 1
691
+ 78
692
+ 49
693
+ 2
694
+ 1
695
+ 19
696
+ 2
697
+ 15
698
+ 23
699
+ 3
700
+ 10
701
+ 48
702
+ 44
703
+ 43
704
+ 1
705
+ 78
706
+ 49
707
+ 2
708
+ 1
709
+ 19
710
+ 3
711
+ 15
712
+ 5
713
+ 39
714
+ 3
715
+ 20
716
+ 0
717
+ 44
718
+ 43
719
+ 1
720
+ 79
721
+ 49
722
+ 2
723
+ 1
724
+ 13
725
+ 7
726
+ 4
727
+ 5
728
+ 49
729
+ 4
730
+ 0
731
+ 49
732
+ 5
733
+ 2
734
+ 15
735
+ 49
736
+ 6
737
+ 2
738
+ 20
739
+ 1
740
+ 20
741
+ 2
742
+ 39
743
+ 7
744
+ 49
745
+ 8
746
+ 1
747
+ 20
748
+ 3
749
+ 49
750
+ 9
751
+ 3
752
+ 47
753
+ 49
754
+ 10
755
+ 1
756
+ 11
757
+ I
758
+ b
759
+ I
760
+ 4
761
+ I
762
+ 0
763
+ I
764
+ 4
765
+ n
766
+ p
767
+ 11
768
+ s
769
+ 0
770
+
771
+ x
772
+ 4
773
+ Hash
774
+ x
775
+ 16
776
+ new_from_literal
777
+ x
778
+ 4
779
+ @uri
780
+ x
781
+ 10
782
+ connection
783
+ x
784
+ 3
785
+ []=
786
+ x
787
+ 2
788
+ []
789
+ x
790
+ 16
791
+ @default_headers
792
+ x
793
+ 5
794
+ merge
795
+ x
796
+ 4
797
+ post
798
+ x
799
+ 24
800
+ maybe_destroy_connection
801
+ p
802
+ 5
803
+ I
804
+ 0
805
+ I
806
+ 25
807
+ I
808
+ 30
809
+ I
810
+ 26
811
+ I
812
+ 5d
813
+ x
814
+ 50
815
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
816
+ p
817
+ 4
818
+ x
819
+ 4
820
+ path
821
+ x
822
+ 4
823
+ body
824
+ x
825
+ 7
826
+ headers
827
+ x
828
+ 6
829
+ params
830
+ x
831
+ 3
832
+ put
833
+ M
834
+ 1
835
+ n
836
+ n
837
+ x
838
+ 3
839
+ put
840
+ i
841
+ 93
842
+ 23
843
+ 0
844
+ 10
845
+ 10
846
+ 7
847
+ 0
848
+ 64
849
+ 19
850
+ 0
851
+ 15
852
+ 23
853
+ 1
854
+ 10
855
+ 20
856
+ 7
857
+ 0
858
+ 64
859
+ 19
860
+ 1
861
+ 15
862
+ 23
863
+ 2
864
+ 10
865
+ 34
866
+ 44
867
+ 43
868
+ 1
869
+ 78
870
+ 49
871
+ 2
872
+ 1
873
+ 19
874
+ 2
875
+ 15
876
+ 23
877
+ 3
878
+ 10
879
+ 48
880
+ 44
881
+ 43
882
+ 1
883
+ 78
884
+ 49
885
+ 2
886
+ 1
887
+ 19
888
+ 3
889
+ 15
890
+ 5
891
+ 39
892
+ 3
893
+ 20
894
+ 0
895
+ 44
896
+ 43
897
+ 1
898
+ 79
899
+ 49
900
+ 2
901
+ 1
902
+ 13
903
+ 7
904
+ 4
905
+ 5
906
+ 49
907
+ 4
908
+ 0
909
+ 49
910
+ 5
911
+ 2
912
+ 15
913
+ 49
914
+ 6
915
+ 2
916
+ 20
917
+ 1
918
+ 20
919
+ 2
920
+ 39
921
+ 7
922
+ 49
923
+ 8
924
+ 1
925
+ 20
926
+ 3
927
+ 49
928
+ 9
929
+ 3
930
+ 47
931
+ 49
932
+ 10
933
+ 1
934
+ 11
935
+ I
936
+ b
937
+ I
938
+ 4
939
+ I
940
+ 0
941
+ I
942
+ 4
943
+ n
944
+ p
945
+ 11
946
+ s
947
+ 0
948
+
949
+ x
950
+ 4
951
+ Hash
952
+ x
953
+ 16
954
+ new_from_literal
955
+ x
956
+ 4
957
+ @uri
958
+ x
959
+ 10
960
+ connection
961
+ x
962
+ 3
963
+ []=
964
+ x
965
+ 2
966
+ []
967
+ x
968
+ 16
969
+ @default_headers
970
+ x
971
+ 5
972
+ merge
973
+ x
974
+ 3
975
+ put
976
+ x
977
+ 24
978
+ maybe_destroy_connection
979
+ p
980
+ 5
981
+ I
982
+ 0
983
+ I
984
+ 29
985
+ I
986
+ 30
987
+ I
988
+ 2a
989
+ I
990
+ 5d
991
+ x
992
+ 50
993
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
994
+ p
995
+ 4
996
+ x
997
+ 4
998
+ path
999
+ x
1000
+ 4
1001
+ body
1002
+ x
1003
+ 7
1004
+ headers
1005
+ x
1006
+ 6
1007
+ params
1008
+ x
1009
+ 6
1010
+ delete
1011
+ M
1012
+ 1
1013
+ n
1014
+ n
1015
+ x
1016
+ 6
1017
+ delete
1018
+ i
1019
+ 81
1020
+ 23
1021
+ 0
1022
+ 10
1023
+ 10
1024
+ 7
1025
+ 0
1026
+ 64
1027
+ 19
1028
+ 0
1029
+ 15
1030
+ 23
1031
+ 1
1032
+ 10
1033
+ 24
1034
+ 44
1035
+ 43
1036
+ 1
1037
+ 78
1038
+ 49
1039
+ 2
1040
+ 1
1041
+ 19
1042
+ 1
1043
+ 15
1044
+ 23
1045
+ 2
1046
+ 10
1047
+ 38
1048
+ 44
1049
+ 43
1050
+ 1
1051
+ 78
1052
+ 49
1053
+ 2
1054
+ 1
1055
+ 19
1056
+ 2
1057
+ 15
1058
+ 5
1059
+ 39
1060
+ 3
1061
+ 20
1062
+ 0
1063
+ 44
1064
+ 43
1065
+ 1
1066
+ 79
1067
+ 49
1068
+ 2
1069
+ 1
1070
+ 13
1071
+ 7
1072
+ 4
1073
+ 5
1074
+ 49
1075
+ 4
1076
+ 0
1077
+ 49
1078
+ 5
1079
+ 2
1080
+ 15
1081
+ 49
1082
+ 6
1083
+ 2
1084
+ 20
1085
+ 1
1086
+ 20
1087
+ 2
1088
+ 39
1089
+ 7
1090
+ 49
1091
+ 8
1092
+ 1
1093
+ 49
1094
+ 9
1095
+ 2
1096
+ 47
1097
+ 49
1098
+ 10
1099
+ 1
1100
+ 11
1101
+ I
1102
+ a
1103
+ I
1104
+ 3
1105
+ I
1106
+ 0
1107
+ I
1108
+ 3
1109
+ n
1110
+ p
1111
+ 11
1112
+ s
1113
+ 0
1114
+
1115
+ x
1116
+ 4
1117
+ Hash
1118
+ x
1119
+ 16
1120
+ new_from_literal
1121
+ x
1122
+ 4
1123
+ @uri
1124
+ x
1125
+ 10
1126
+ connection
1127
+ x
1128
+ 3
1129
+ []=
1130
+ x
1131
+ 2
1132
+ []
1133
+ x
1134
+ 16
1135
+ @default_headers
1136
+ x
1137
+ 5
1138
+ merge
1139
+ x
1140
+ 6
1141
+ delete
1142
+ x
1143
+ 24
1144
+ maybe_destroy_connection
1145
+ p
1146
+ 5
1147
+ I
1148
+ 0
1149
+ I
1150
+ 2d
1151
+ I
1152
+ 26
1153
+ I
1154
+ 2e
1155
+ I
1156
+ 51
1157
+ x
1158
+ 50
1159
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
1160
+ p
1161
+ 3
1162
+ x
1163
+ 4
1164
+ path
1165
+ x
1166
+ 10
1167
+ parameters
1168
+ x
1169
+ 7
1170
+ headers
1171
+ x
1172
+ 24
1173
+ maybe_destroy_connection
1174
+ M
1175
+ 1
1176
+ n
1177
+ n
1178
+ x
1179
+ 24
1180
+ maybe_destroy_connection
1181
+ i
1182
+ 42
1183
+ 20
1184
+ 0
1185
+ 49
1186
+ 0
1187
+ 0
1188
+ 9
1189
+ 37
1190
+ 45
1191
+ 1
1192
+ 2
1193
+ 49
1194
+ 3
1195
+ 0
1196
+ 7
1197
+ 4
1198
+ 39
1199
+ 5
1200
+ 49
1201
+ 6
1202
+ 0
1203
+ 47
1204
+ 49
1205
+ 7
1206
+ 0
1207
+ 7
1208
+ 8
1209
+ 63
1210
+ 3
1211
+ 49
1212
+ 9
1213
+ 1
1214
+ 15
1215
+ 1
1216
+ 38
1217
+ 5
1218
+ 8
1219
+ 38
1220
+ 1
1221
+ 15
1222
+ 20
1223
+ 0
1224
+ 11
1225
+ I
1226
+ 5
1227
+ I
1228
+ 1
1229
+ I
1230
+ 1
1231
+ I
1232
+ 1
1233
+ n
1234
+ p
1235
+ 10
1236
+ x
1237
+ 18
1238
+ connection_closed?
1239
+ x
1240
+ 5
1241
+ Wrest
1242
+ n
1243
+ x
1244
+ 6
1245
+ logger
1246
+ s
1247
+ 11
1248
+ Connection
1249
+ x
1250
+ 11
1251
+ @connection
1252
+ x
1253
+ 4
1254
+ hash
1255
+ x
1256
+ 4
1257
+ to_s
1258
+ s
1259
+ 30
1260
+ has been closed by the server
1261
+ x
1262
+ 4
1263
+ warn
1264
+ p
1265
+ 13
1266
+ I
1267
+ 0
1268
+ I
1269
+ 31
1270
+ I
1271
+ 0
1272
+ I
1273
+ 32
1274
+ I
1275
+ 7
1276
+ I
1277
+ 33
1278
+ I
1279
+ 20
1280
+ I
1281
+ 34
1282
+ I
1283
+ 25
1284
+ I
1285
+ 32
1286
+ I
1287
+ 27
1288
+ I
1289
+ 36
1290
+ I
1291
+ 2a
1292
+ x
1293
+ 50
1294
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
1295
+ p
1296
+ 1
1297
+ x
1298
+ 8
1299
+ response
1300
+ p
1301
+ 17
1302
+ I
1303
+ 2
1304
+ I
1305
+ 15
1306
+ I
1307
+ a
1308
+ I
1309
+ 16
1310
+ I
1311
+ 18
1312
+ I
1313
+ 1d
1314
+ I
1315
+ 26
1316
+ I
1317
+ 21
1318
+ I
1319
+ 34
1320
+ I
1321
+ 25
1322
+ I
1323
+ 42
1324
+ I
1325
+ 29
1326
+ I
1327
+ 50
1328
+ I
1329
+ 2d
1330
+ I
1331
+ 5e
1332
+ I
1333
+ 31
1334
+ I
1335
+ 6c
1336
+ x
1337
+ 50
1338
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
1339
+ p
1340
+ 0
1341
+ x
1342
+ 13
1343
+ attach_method
1344
+ p
1345
+ 3
1346
+ I
1347
+ 2
1348
+ I
1349
+ 14
1350
+ I
1351
+ 1d
1352
+ x
1353
+ 50
1354
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
1355
+ p
1356
+ 0
1357
+ x
1358
+ 13
1359
+ attach_method
1360
+ p
1361
+ 3
1362
+ I
1363
+ 0
1364
+ I
1365
+ a
1366
+ I
1367
+ 1e
1368
+ x
1369
+ 50
1370
+ /Users/sidu/Work/wrest/lib/wrest/native/session.rb
1371
+ p
1372
+ 0