Skip to content

Commit

Permalink
Fix max-size => max-filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Apr 27, 2024
1 parent 2215eaa commit 6828b6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions sites/hurl.dev/_posts/2024-04-24-announcing-hurl-4.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ the option is tagged "cli-only option". For instance:
When "cli-only option" is not specified, the option can be set per request within an [`[Options]`]({% link _docs/request.md %}#options) section.
### --max-size
### --max-filesize
One last new option backported from curl, [`--max-size`]({% link _docs/manual.md %}#max-size) allows to limit the size of HTTP response data (in bytes):
One last new option backported from curl, [`--max-filesize`]({% link _docs/manual.md %}#max-filesize) allows to limit the size of HTTP response data (in bytes):
```shell
$ hurl --max-size 100000 https://example.com/
$ hurl --max-filesize 100000 https://example.com/
```
### New Predicates: isNumber, isIsoDate
Expand Down Expand Up @@ -252,7 +252,7 @@ To develop this feature, we take a lot of inspiration of the venerable [GNU Para
In the parallel mode, each Hurl file is executed on its own thread, sharing nothing with other jobs. There is a thread
pool which size is roughly the current amount of CPUs and that can be configured with [`--jobs`]({% link _docs/manual.md %}#jobs) option. During parallel execution, standard output and error are buffered for each file and only displayed on screen when a job file is finished. This way, debug logs and messages are never interleaved between execution. Order of execution is not guaranteed
in `--parallel` mode but reports ([HTML], [TAP], [Junit]) keep the input files order.
in `--parallel` mode but reports ([HTML], [TAP], [JUnit]) keep the input files order.
The parallelism used is multithread sync: the thread pool is instantiated for the whole run, each Hurl file is run
in its own thread, synchronously . We've not gone through the full multithreaded async route for implementation
Expand Down
8 changes: 4 additions & 4 deletions sites/hurl.dev/_posts/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ the option is tagged &ldquo;cli-only option&rdquo;. For instance:</p>
This is a cli-only option.
</code></pre>
<p>When &ldquo;cli-only option&rdquo; is not specified, the option can be set per request within an <a href="https://hurl.dev/docs/request.html#options"><code>[Options]</code></a> section.</p>
<h3>&ndash;max-size</h3>
<p>One last new option backported from curl, <a href="https://hurl.dev/docs/manual.html#max-size"><code>--max-size</code></a> allows to limit the size of HTTP response data (in bytes):</p>
<pre><code class="language-shell">$ hurl --max-size 100000 https://example.com/
<h3>&ndash;max-filesize</h3>
<p>One last new option backported from curl, <a href="https://hurl.dev/docs/manual.html#max-filesize"><code>--max-filesize</code></a> allows to limit the size of HTTP response data (in bytes):</p>
<pre><code class="language-shell">$ hurl --max-filesize 100000 https://example.com/
</code></pre>
<h3>New Predicates: isNumber, isIsoDate</h3>
<p><a href="https://hurl.dev/docs/asserting-response.html#predicates">Predicates</a> are used to check HTTP responses:</p>
Expand Down Expand Up @@ -183,7 +183,7 @@ execution of Hurl files.</p>
<p>To develop this feature, we take a lot of inspiration of the venerable <a href="https://www.gnu.org/software/parallel/">GNU Parallel</a>.</p>
<p>In the parallel mode, each Hurl file is executed on its own thread, sharing nothing with other jobs. There is a thread
pool which size is roughly the current amount of CPUs and that can be configured with <a href="https://hurl.dev/docs/manual.html#jobs"><code>--jobs</code></a> option. During parallel execution, standard output and error are buffered for each file and only displayed on screen when a job file is finished. This way, debug logs and messages are never interleaved between execution. Order of execution is not guaranteed
in <code>--parallel</code> mode but reports (<a href="https://hurl.dev/docs/running-tests.html#html-report">HTML</a>, <a href="https://hurl.dev/docs/running-tests.html#tap-report">TAP</a>, <a href="https://hurl.dev/docs/running-tests.html#junit-report">Junit</a>) keep the input files order.</p>
in <code>--parallel</code> mode but reports (<a href="https://hurl.dev/docs/running-tests.html#html-report">HTML</a>, <a href="https://hurl.dev/docs/running-tests.html#tap-report">TAP</a>, <a href="https://hurl.dev/docs/running-tests.html#junit-report">JUnit</a>) keep the input files order.</p>
<p>The parallelism used is multithread sync: the thread pool is instantiated for the whole run, each Hurl file is run
in its own thread, synchronously . We’ve not gone through the full multithreaded async route for implementation
simplicity. Moreover, there is no additional dependency, only the standard Rust lib with &ldquo;classic&rdquo; threads and
Expand Down

0 comments on commit 6828b6f

Please sign in to comment.