From 8cde5f50fd1007a39d7bfd72e5bf47c26152d343 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Thu, 14 Dec 2017 20:32:47 +0800 Subject: [PATCH] add FileName.from_any to request doc --- docs/request.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/request.rst b/docs/request.rst index 82ce1ec..042df05 100644 --- a/docs/request.rst +++ b/docs/request.rst @@ -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)