Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rfc6266
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
rfc6266
Commits
0fd354cc
Commit
0fd354cc
authored
Feb 01, 2012
by
Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README update.
parent
0afd89e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
README
+7
-4
No files found.
README
View file @
0fd354cc
# rfc6266
# rfc6266
This module
implements parsing of
HTTP Content-Disposition headers.
This module
parses and generates
HTTP Content-Disposition headers.
These headers are used when getting resources for download;
These headers are used when getting resources for download;
they provide a hint of whether the file should be downloaded,
they provide a hint of whether the file should be downloaded,
and of what filename to use when saving.
and of what filename to use when saving.
...
@@ -10,8 +10,11 @@ and of what filename to use when saving.
...
@@ -10,8 +10,11 @@ and of what filename to use when saving.
## Receiver
## Receiver
`parse_headers` builds a `ContentDisposition` object from the header value.
`parse_headers` builds a `ContentDisposition` object from the
The header can be complemented with fallbacks such as a location url.
`Content-Disposition` header and (as a fallback) the document
location. Shortcuts work with response objects from httplib2
and the requests library.
Important attributes of `ContentDisposition` are `is_inline`,
Important attributes of `ContentDisposition` are `is_inline`,
`filename_unsafe`, `filename_sanitized`.
`filename_unsafe`, `filename_sanitized`.
...
@@ -37,7 +40,7 @@ To test in the current Python implementation:
...
@@ -37,7 +40,7 @@ To test in the current Python implementation:
py.test
py.test
To test
with tox
:
To test
compatibility across Python releases
:
tox
tox
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment