summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'devel' of https://github.com/RyanMarcus/Nim into RyanMarcus-develDominik Picheta2016-07-301-17/+54
|\
| * added when() block so that the compiler doesn't try to link SSL methods when ↵Ryan Marcus2016-07-271-21/+24
| | | | | | | | SSL isn't available
| * removed whitespace diffsRyan Marcus2016-07-271-2/+0
| |
| * added code to send CONNECT request for https requests through proxies, fixes ↵Ryan Marcus2016-07-271-16/+52
| | | | | | | | #4520
* | Merge pull request #4527 from hendi/httpclient-close-socketsAndreas Rumpf2016-07-281-1/+1
|\ \ | |/ |/| make httpclient close opened Socket on error
| * use `defer` instead of `try ... finally`Hendrik Richter2016-07-281-25/+22
| |
| * remove superfluous `except: raise`Hendrik Richter2016-07-281-2/+0
| |
| * make httpclient close opened Socket on errorHendrik Richter2016-07-281-22/+27
| |
* | Fix empty body on HTTP/1.0 connectionsHendrik Richter2016-06-161-6/+7
|/ | | | | HTTP/1.0 does not send `Connection: close`. Thus we read till the end of the response in order to catch the whole body.
* Use passed user agent in `newAsyncHttpClient`Euan T2016-06-051-1/+1
| | | Fixes #4273.
* Fixes #3847.Dominik Picheta2016-06-021-0/+7
|
* httpclient now uses httpcore.HttpHeadersDominik Picheta2016-06-021-8/+8
|
* moved random procs from math to its own module (breaking change)Andreas Rumpf2016-05-301-1/+2
|
* Stdlib: httpclient: `export strtabs` added.Konstantin Molchanov2016-05-281-0/+2
| | | | | When using `httpclient`, viewing HTTP headers is impossible without importing `strtabs`, which is very much _not_ obvious; it's impossible to know without deep diving into the docs. Dealing with headers is an essential part of working with HTTP in general, so I propose this change. The situation is analogous to this one with `nre` and `options`: https://github.com/nim-lang/Nim/issues/4158
* Fixed some warnings in httpclient, net, and openssl.Dominik Picheta2016-04-041-2/+2
|
* Remove debug `echo` introduced in #3896.Dominik Picheta2016-02-241-1/+0
|
* Fix redirection in httpclient (fixes #3895)def2016-02-231-7/+9
|
* Fixes incorrect Host header when using httpclient with proxy.Dominik Picheta2015-12-291-5/+5
|
* updated httpclient to use tables.getOrDefaultAraq2015-10-141-7/+7
|
* Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-031-4/+4
| | | | | | | | | | This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code.
* Include port in host header as expectedDoran2015-09-041-2/+10
|
* Set correct Host in request headerjonathonf2015-08-011-1/+1
| | | | | Ensure the correct destination hostname is used in the request, otherwise the request will fail in one of a number of interesting ways when using a proxy. Fixes https://github.com/nim-lang/Nim/issues/3166
* Fix async httpclient post to work without multipartdef2015-07-101-2/+3
|
* Implement async `post` requestBruce Doan2015-07-021-0/+18
|
* Fixes #2884Dominik Picheta2015-06-081-2/+4
| | | | Haven't tested this patch but should work.
* Fixed 'milliseconds' spelling in code and docspdw2015-05-151-8/+8
|
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
|
* Use `^` instead of `-` in slicesdef2015-03-281-5/+5
|
* Fixes bugs introduced by ee62d56cadb. Closes #2227.Dominik Picheta2015-03-051-2/+8
|
* Fix typosFederico Ceratto2015-02-151-2/+2
|
* Added documentation for the new http request procedures.Varriount2015-01-231-1/+13
|
* Fixes #1962Varriount2015-01-221-24/+33
|
* Fix body in httpclientdef2015-01-131-2/+2
| | | | | - Never append a newline to the body in a HTTP post. - Pass the entire body to redirections, including multipart data
* Rename newData() to newMultipartData()def2015-01-051-5/+5
|
* A few more fixes to httpclient multipartdef2015-01-051-4/+9
|
* post should work when extra headers don't have trailing newlinedef2015-01-051-2/+11
|
* Check that p is not nil in formatdef2015-01-051-1/+1
|
* Add multipart parameter to httpclient's post and postContentdef2015-01-051-35/+128
|
* Remove debug messagesdef2015-01-031-2/+0
|
* Apply #1824 to fix #1823def2015-01-031-2/+4
|
* Minor cleanupdef2015-01-031-3/+2
|
* Fix httpclient to properly encode queries (path?queries)def2015-01-031-2/+7
|
* Fixes #1759.Dominik Picheta2014-12-211-2/+6
| | | | Caused by not skipping the \c\l with Chunked encoding after the body is parsed.
* removed unused variable from httpclientWill Szumski2014-12-171-1/+0
|
* replace deprecated parseUrl with parseUri in httpclientWill Szumski2014-12-171-10/+10
|
* switched httpclient to use net module instead of socketsWill Szumski2014-12-171-7/+6
|
* Fix some deprecation warnings caused by renamesdef2014-11-131-49/+49
|
* Made 'headers' publicErik O'Leary2014-11-061-44/+44
|
* Lots of documentation improvements for asyncdispatch.Dominik Picheta2014-09-121-0/+13
| | | | Ref #1487.
* Fixes httpclient SSL issue. Implements unbuffered SSL recv. Ref #1487.Dominik Picheta2014-09-061-1/+2
|
gt; 2017-11-19 02:35:43 -0800 4124' href='/akkartik/mu/commit/076continuation.cc?h=hlt&id=c6ab07f7006161b7b21181ff3385dcf6bf01770b'>c6ab07f7 ^
03d673bb ^

a3195d44 ^
fe63e0d6 ^
03d673bb ^
87374384 ^
acce384b ^
03d673bb ^

fe63e0d6 ^
03d673bb ^

53930831 ^
fa76b0b5 ^

3b776ac3 ^
03d673bb ^
a3195d44 ^
0e1ebc3e ^


5059f32d ^
0e1ebc3e ^






5059f32d ^
0e1ebc3e ^

0e1ebc3e ^
0e1ebc3e ^
5059f32d ^


















07de3e95 ^



5059f32d ^
07de3e95 ^








5059f32d ^

1cd83361 ^
07de3e95 ^
5059f32d ^
07de3e95 ^
1cd83361 ^


5059f32d ^

1cd83361 ^



5059f32d ^

1cd83361 ^
07de3e95 ^
20252c5e ^

5059f32d ^
20252c5e ^



5059f32d ^
20252c5e ^


1cd83361 ^


5059f32d ^
1cd83361 ^




5059f32d ^
1cd83361 ^




a3195d44 ^




87374384 ^
2a81a547 ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336