Falcon v3.0.0-b1 Documentationcontent_length. Whenever using resp.stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Let’s refactor our app.py to allow create_app()ing downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 1028 页 | 725.86 KB | 1 年前3
 Falcon v3.0.0 Documentationcontent_length. Whenever using resp.stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Now we’re ready to configure the routes for our app downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 1055 页 | 739.30 KB | 1 年前3
 Falcon v3.0.1 Documentationcontent_length. Whenever using resp.stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Now we’re ready to configure the routes for our app downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 1058 页 | 741.59 KB | 1 年前3
 Falcon v3.0.0-b2 Documentationcontent_length. Whenever using resp.stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Now we’re ready to configure the routes for our app downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 1041 页 | 730.21 KB | 1 年前3
 Falcon v1.0.0 Documentationstream_len. Whenever using resp.stream instead of resp.body or resp.data, you have to also specify the expected length of the stream so that the web client knows how much data to read from the response. Note differently depending on how you host your app. For example, attempting to read more bytes than are expected (as determined by the Content-Length header) may or may not block indefinitely. It’s a good idea WSGI server to find out how it behaves. This can be particulary problematic when a request body is expected, but none is given. In this case, the following call blocks under certain WSGI servers: # Blocks0 码力 | 312 页 | 368.58 KB | 1 年前3
 Falcon v0.2.0 Documentationstream_len. Whenever using resp.stream instead of resp.body or resp.data, you have to also specify the expected length of the stream so that the web client knows how much data to read from the response. Note provided by the WSGI server, in order to efficiently serve file-like objects. stream_len int – Expected length of stream (e.g., file size). add_link(target, rel, title=None, title_star=None, anchor=None date string. location Sets the Location header. retry_after Sets the Retry-After header. The expected value is an integral number of seconds to use as the value for the header. The HTTP-date syntax0 码力 | 188 页 | 358.44 KB | 1 年前3
 Falcon v1.0.0 Documentationstream_len. Whenever using resp.stream instead of resp.body or resp.data, you have to also specify the expected length of the stream so that the web client knows how much data to read from the response. Note provided by the WSGI server, in order to efficiently serve file-like objects. stream_len int – Expected length of stream. If stream is set, but stream_len is not, Falcon will not supply a Content-Length date string. location Sets the Location header. retry_after Sets the Retry-After header. The expected value is an integral number of seconds to use as the value for the header. The HTTP-date syntax0 码力 | 249 页 | 406.22 KB | 1 年前3
 Falcon v3.1.1-b3 Documentationcontent_length. Whenever using resp. stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Now we’re ready to configure the routes for our app downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 378 页 | 1.29 MB | 1 年前3
 Falcon v3.1.1-b1 Documentationcontent_length. Whenever using resp. stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Now we’re ready to configure the routes for our app downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 378 页 | 1.29 MB | 1 年前3
 Falcon v3.1.1-a Documentationcontent_length. Whenever using resp. stream instead of resp.text or resp.data, you typically also specify the expected length of the stream using the Content-Length header, so that the web client knows how much data application, field converters are simple synchronous data transformation functions that are not expected to perform any I/O. Running Our Application Now we’re ready to configure the routes for our app downloadable file with Falcon?). Streaming Large CSV Files on the Fly If generated CSV responses are expected to be very large, it might be worth streaming the CSV data as it is produced. This approach will0 码力 | 378 页 | 1.29 MB | 1 年前3
共 61 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 













