summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
Commit message (Collapse)AuthorAgeFilesLines
* Implement suggestions from @dom96Dmitry Polienko2016-11-021-18/+17
|
* Don't persist generated headers between requestsDmitry Polienko2016-10-311-11/+32
|
* Reset HttpClient if new URL has different portDmitry Polienko2016-10-241-2/+4
|
* Update httpclient documentationDennis Felsing2016-10-211-2/+2
|
* Fix few typosFederico Ceratto2016-10-171-2/+2
|
* Add example for posting json contentAlpha Shuro2016-10-121-0/+14
| | | i struggled to figure out how to post json content with nim's http client. this is a fundamental capability in many web apps, we don't always need to send data as multipart form data (e.g. when communicating via json apis) so frankly i'm surprised it isn't part of the "post" and "postContent" procs
* asynchttpserver's Response object's req method uses HttpMethod now.Dominik Picheta2016-09-251-3/+3
| | | | Fixes #4423.
* HTTP client's request proc no longer slices http method string param.Dominik Picheta2016-09-251-4/+5
|
* Improves httpclient documentation.Dominik Picheta2016-09-241-32/+51
|
* Implements onProgressChanged callback for httpclient.Dominik Picheta2016-09-241-11/+51
|
* Deprecates old httpclient procedures.Dominik Picheta2016-09-241-6/+22
|
* Implements getContent and postContent for (Async)HttpClient.Dominik Picheta2016-09-241-1/+36
|
* Handle redirects in HttpClient's post procs & post test.Dominik Picheta2016-09-241-0/+10
|
* Use `distinct range` for HttpCode as suggested by @nigredo-tori.Dominik Picheta2016-09-191-2/+3
|
* Implements proxy support for (Async)HttpClient. Ref #4423.Dominik Picheta2016-09-181-18/+75
| | | | Fixes #2160.
* Implements timeouts for synchronous HttpClient.Dominik Picheta2016-09-181-9/+22
|
* Use HttpHeaders in httpclient module.Dominik Picheta2016-09-181-8/+8
|
* Improvements to httpclient. Refs #4423.Dominik Picheta2016-09-181-87/+69
| | | | | | * Adds ability to query HttpCode and compare it with strings. * Moves HttpMethod to HttpCore module. * Implements synchronous HttpClient using {.multisync.}.
* 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
|