mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
Expand docs.
This commit is contained in:
parent
b6073b11c2
commit
722f8e9598
@ -249,7 +249,10 @@ class HTTPServer(object):
|
||||
|
||||
def _send_encoded(self, request, data):
|
||||
"""
|
||||
Return encoded data as the HTTP body response, by default using CBOR.
|
||||
Return encoded data suitable for writing as the HTTP body response, by
|
||||
default using CBOR.
|
||||
|
||||
Also sets the appropriate ``Content-Type`` header on the response.
|
||||
"""
|
||||
cbor_mime = "application/cbor"
|
||||
accept_headers = request.requestHeaders.getRawHeaders("accept") or [cbor_mime]
|
||||
|
Loading…
Reference in New Issue
Block a user