summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes httpclient documentation commentAraq2018-03-121-1/+1
|
* Improve SSL error message in httpclient.Dominik Picheta2018-02-221-5/+6
|
* Merges #7226 manually.Dominik Picheta2018-02-191-0/+25
|
* Workaround 'defer' issue in httpclient.downloadFile. Refs #3877. (#7101)Dominik Picheta2018-01-181-13/+32
|
* Fixed crash in ssl httpclientYuriy Glukhov2018-01-111-3/+9
|
* Fixes httpclient proxies. Fixes #6685 (#6694)Ganesh Viswanathan2017-11-071-36/+38
| | | | | | * Fix for #6685 * Fixed test breakage - SSL call wasn't within when defined(ssl) check
* Fixes req w/ both Content-Length & Connection: close headers.Dominik Picheta2017-10-131-4/+18
| | | | | Also closes the socket when connection is closed to ensure that a new connection is made on any further requests.
* Fixes #6284.Dominik Picheta2017-08-281-0/+2
|
* Minor formattingdaneb2017-06-131-1/+1
|
* Working example to resolve #5863daneb2017-06-131-1/+2
|
* Add 'hostname' param to wrapConnectedSocketRuslan Mustakov2017-05-041-3/+5
|
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement dial, support IPv6 in httpclient Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``, ``asyncnet``. It merges socket creation, address resolution, and connection into single step. When using ``dial``, you don't have to worry about IPv4 vs IPv6 problem. Fixed addrInfo loop in connect to behave properly. Previously it would stop on first non-immediate failure, instead of continuing and trying the remaining addresses. Fixed newAsyncNativeSocket to raise proper error if socket creation fails. Fixes: #3811 * Check domain during connect() only on non-Windows This is how it was in the previous implementation of connect(). * Call 'osLastError' before 'close' in net.dial * Record osLastError before freeAddrInfo in net.dial * Add missing docs for 'dial' proc * Optimize dial to create one FD per domain, add tests And make async IPv6 servers work on Windows. * Add IPv6 test to uri module * Fix getAddrString error handling
* Fixes #5710. Closes #5711.Dominik Picheta2017-04-151-6/+9
|
* Fix #5611Daniil Yarancev2017-04-021-2/+2
|
* Only remove scheme when there's a TLS request ("https")Rayner De Los Santos F2017-03-031-2/+2
| | | If condition, for not removing the scheme when proxied connection isn't a TLS request ("http://...").
* Ensure default SSL context is always initializedRuslan Mustakov2017-02-271-2/+10
|
* make tests green againAraq2017-02-261-3/+0
|
* Fix the other withNewLine template.Dominik Picheta2017-02-261-1/+1
|
* Various fixes to FutureStreams based on PR feedback.Dominik Picheta2017-02-261-23/+11
|
* Add small warning in httpclient's onProgressChanged docs.Dominik Picheta2017-02-261-0/+3
|
* fixed premature finishing of httpclient.downloadFileAraq2017-02-251-8/+6
|
* Implement streamed async/sync downloadFile and deprecate old one.Dominik Picheta2017-02-111-14/+46
|
* Implement streamed body reading in httpclient.Dominik Picheta2017-02-111-42/+108
|
* Use onThreadCreation to set default SSL context for each thread (#5265)Ruslan Mustakov2017-01-231-5/+8
| | | Fixes: #4998
* Fixed query and anchor during relative redirectionYuriy Glukhov2017-01-201-0/+2
|
* Redirects support in request procYuriy Glukhov2017-01-191-18/+28
|
* 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
| |