Falcon v1.0.0 DocumentationParameters: sink (callable) – A callable taking the form func(req, resp). prefix (str) – A regex string, typically starting with ‘/’, which will trigger the sink if it matches the path portion of the request’s in query string parameters (default False). auto_parse_form_urlencoded Set to True in order to automatically consume the request stream and merge the results into the request’s query string params when relative_uri str – The path + query string portion of the full URI. path str – Path portion of the request URL (not including query string). query_string str – Query string portion of the request URL, without0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v1.0.0 DocumentationParameters: sink (callable) – A callable taking the form func(req, resp). prefix (str) – A regex string, typically starting with ‘/’, which will trigger the sink if it matches the path portion of the request’s for configuring certain Request behaviors. keep_blank_qs_values bool – Set to True to keep query string fields even if they do not have a value (default False). For comma-separated values, this option order to automatically consume the request stream and merge the results into the request’s query string params when the request’s content type is application/x-www-form-urlencoded (default False). In0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v3.0.1 Documentationdef on_get_image(self, req, resp, image_id): # NOTE: image_id: UUID is converted back to a string identifier. image = self._store.get(str(image_id)) resp.stream = await aiofiles org/3/library/uuid.html#uuid.UUID]. So what’s going on here? How will the image_id field, matched from a string path segment, become a UUID [https://docs.python.org/3/library/uuid.html#uuid.UUID]? Falcon’s default as Routing): /images/{image_id:uuid}.jpeg Since our application is still internally centered on string identifiers, feel free to experiment with refactoring the image Store to use UUID [https://docs0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0 Documentationdef on_get_image(self, req, resp, image_id): # NOTE: image_id: UUID is converted back to a string identifier. image = self._store.get(str(image_id)) resp.stream = await aiofiles org/3/library/uuid.html#uuid.UUID]. So what’s going on here? How will the image_id field, matched from a string path segment, become a UUID [https://docs.python.org/3/library/uuid.html#uuid.UUID]? Falcon’s default as Routing): /images/{image_id:uuid}.jpeg Since our application is still internally centered on string identifiers, feel free to experiment with refactoring the image Store to use UUID [https://docs0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.0-b2 Documentationdef on_get_image(self, req, resp, image_id): # NOTE: image_id: UUID is converted back to a string identifier. image = self._store.get(str(image_id)) resp.stream = await aiofiles org/3/library/uuid.html#uuid.UUID]. So what’s going on here? How will the image_id field, matched from a string path segment, become a UUID [https://docs.python.org/3/library/uuid.html#uuid.UUID]? Falcon’s default as Routing): /images/{image_id:uuid}.jpeg Since our application is still internally centered on string identifiers, feel free to experiment with refactoring the image Store to use UUID [https://docs0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 Documentationdef on_get_image(self, req, resp, image_id): # NOTE: image_id: UUID is converted back to a string identifier. image = self._store.get(str(image_id)) resp.stream = await aiofiles org/3/library/uuid.html#uuid.UUID]. What is going on here? How will the image_id field, matched from a string path segment, now become a UUID [https://docs.python.org/3/library/uuid.html#uuid.UUID]? Falcon’s next chapter): /images/{image_id:uuid}.jpeg Since our application is still internally centered on string identifiers, feel free to experiment with refactoring the image Store to use UUID [https://docs0 码力 | 1028 页 | 725.86 KB | 1 年前3
CakePHP Cookbook 2.x
complete these laundry-list items, but they’re not required for this tutorial. One is defining a custom string (or “salt”) for use in security hashes. The second is defining a custom number (or “seed”) for use replacement value should be long, hard to guess and be as random as you can make it: /** * A random string used in security hashing methods. */ Configure::write('Security.salt', 'pl345e-P45s_7h3*S@l7!'); /app/Config/core.php. The replacement value should be a large random integer: /** * A random numeric string (digits only) used to encrypt/decrypt strings. */ Configure::write('Security.cipherSeed', '0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
complete these laundry-list items, but they’re not required for this tutorial. One is defining a custom string (or “salt”) for use in security hashes. The second is defining a custom number (or “seed”) for use replacement value should be long, hard to guess and be as random as you can make it: /** * A random string used in security hashing methods. */ Configure::write('Security.salt', 'pl345e-P45s_7h3*S@l7!'); /app/Config/core.php. The replacement value should be a large random integer: /** * A random numeric string (digits only) used to encrypt/decrypt strings. */ Configure::write('Security.cipherSeed', '74850 码力 | 820 页 | 2.52 MB | 1 年前3
Falcon v3.0.0 Documentationasync def on_get_image(self, req, resp, image_id): # NOTE: image_id: UUID is converted back to a string identifier. image = self._store.get(str(image_id)) resp.stream = await aiofiles.open(image.path, receiving an image_id of type UUID. So what’s going on here? How will the image_id field, matched from a string path segment, become a UUID? Falcon’s default router supports simple validation and transformation Release 3.0.0 /images/{image_id:uuid}.jpeg Since our application is still internally centered on string identifiers, feel free to experiment with refactoring the image Store to use UUIDs natively! (Alternatively0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationasync def on_get_image(self, req, resp, image_id): # NOTE: image_id: UUID is converted back to a string identifier. image = self._store.get(str(image_id)) resp.stream = await aiofiles.open(image.path, receiving an image_id of type UUID. So what’s going on here? How will the image_id field, matched from a string path segment, become a UUID? Falcon’s default router supports simple validation and transformation Release 3.0.1 /images/{image_id:uuid}.jpeg Since our application is still internally centered on string identifiers, feel free to experiment with refactoring the image Store to use UUIDs natively! (Alternatively0 码力 | 344 页 | 1.16 MB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













