add FileName.from_any to request doc

This commit is contained in:
Prodesire 2017-12-14 20:32:47 +08:00
parent c25e110983
commit 8cde5f50fd
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ Request
Detect filename from Content-Disposition headers if present.
``headers`` could be a dict, list or string.
.. py:staticmethod:: from_any(dst=None, headers=None, url=None):
Detect filename from dst or headers or url.
.. py:function:: pydu.request.download(url, dst=None)