問題タブ [boost-beast]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - body_limitでビーストメッセージをブースト
私の出発点は、ブーストhttp_client_async のブースト ビースト http_client_async の例から単純なダウンローダー コードを作成することです。このシナリオでは、受信した本文をファイルに書き込みたいと考えています。
そこで、受信したデータを書き込むために、文字列本体を file_body に交換しました。
そして、単に on_write メソッドを次のように書き直しました。
そのため、現在、受信したデータ本体の一部が大きすぎます。
体の限界を上げようとする。
messageの代わりにパーサーを使用する場合、リクエストされたボディのサイズ制限はメソッドで変更できます。body_limit()
メッセージからボディサイズの制限を増やす簡単な方法はありますか?