Falcon v3.0.0-b1 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.0.0 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.1.1-b3 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST def io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon.HTTP_201 resp.location = '/images/' content_type) resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll use0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST def io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon.HTTP_201 resp.location = '/images/' content_type) resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll use0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST def io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon.HTTP_201 resp.location = '/images/' content_type) resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll use0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST def io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon.HTTP_201 resp.location = '/images/' content_type) resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll use0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST def io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon.HTTP_201 resp.location = '/images/' content_type) resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll use0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 Documentationimport io import os import uuid import mimetypes import falcon import msgpack class Resource: _CHUNK_SIZE_BYTES = 4096 # The resource object must now be initialized with a path used during POST def io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self._CHUNK_SIZE_BYTES) if not chunk: break image_file.write(chunk) resp.status = falcon.HTTP_201 resp.location = '/images/' content_type) resp.status = falcon.HTTP_201 resp.location = '/images/' + name class ImageStore: _CHUNK_SIZE_BYTES = 4096 # Note the use of dependency injection for standard library # methods. We'll use0 码力 | 378 页 | 1.29 MB | 1 年前3
共 55 条
- 1
- 2
- 3
- 4
- 5
- 6













