@@ -4,9 +4,9 @@ weight = 3
44template = "doc.html"
55+++
66
7−This document details the `task`s that can be sent to Iris. Iris only has a couple of `task`s you can use - [%request](#request) and [%cancel-request](#cancel-request).
7+This document details the `task`s that can be sent to Iris. Iris only has a couple of `task`s you can use: [%request](#request) and [%cancel-request](#cancel-request).
88
9−# `%request`
9+## `%request`
1010
1111```hoon
1212[%request =request:http =outbound-config]
@@ -14,11 +14,11 @@ This document details the `task`s that can be sent to Iris. Iris only has a coup
1414
1515Fetch a remote HTTP resource.
1616
17−The [$request:http](@/docs/arvo/eyre/data-types.md#request-http) is the request itself and contains the HTTP method, the fully qualified target URL, a list of HTTP headers to be included and maybe the data for the body of the request.
17+The [$request:http](/docs/arvo/eyre/data-types#requesthttp) is the request itself and contains the HTTP method, the fully qualified target URL, a list of HTTP headers to be included and maybe the data for the body of the request.
1818
19−The [$outbound-config](@/docs/arvo/iris/data-types.md#outbound-config) specifies the number of redirects to follow before failing and the number of retries to attempt before giving up. The default values are `5` and `3` respectively. As of writing, **retries and auto-following redirects are not implemented**, so what you specify here is irrelevant and you can just use the bunt value of `outbound-config`.
19+The [$outbound-config](/docs/arvo/iris/data-types#outbound-config) specifies the number of redirects to follow before failing and the number of retries to attempt before giving up. The default values are `5` and `3` respectively. As of writing, **retries and auto-following redirects are not implemented**, so what you specify here is irrelevant and you can just use the bunt value of `outbound-config`.
2020
21−## Returns
21+### Returns
2222
2323Iris returns a `%http-response` `gift` in response to a `%request` task. A `%response` `gift` looks like:
2424
@@ -26,17 +26,17 @@ Iris returns a `%http-response` `gift` in response to a `%request` task. A `%res
2626[%http-response =client-response]
2727```
2828
29−The [$client-response](@/docs/arvo/iris/data-types.md#client-response) contains the HTTP response from the server including the status code, HTTP headers and any data along with its mime type.
29+The [$client-response](/docs/arvo/iris/data-types#client-response) contains the HTTP response from the server including the status code, HTTP headers and any data along with its mime type.
3030
3131The `client-response` structure specifies three kinds of responses - `%progress`, `%finished` and `%cancel`. The `%progress` response would contain each chunk of the message as it came in, `%finished` would contain the final assembled message from Vere's buffer, and `%cancel` would be sent if the runtime cancels the request.
3232
3333Note that neither `%progress` partial messages nor `%cancel` responses have been implemented in Vere at the time of writing, so **you will only ever receive a single `%http-response` `gift` with a `%finished` `client-response`**. If the request fails for some reason, you'll still get an empty `%finished` `client-response` with a `504` status code.
3434
35−## Example
35+### Example
3636
37−See the [Example](@/docs/arvo/iris/example.md) document.
37+See the [Example](/docs/arvo/iris/example) document.
3838
39−# `%cancel-request`
39+## `%cancel-request`
4040
4141```hoon
4242[%cancel-request ~]
@@ -46,11 +46,11 @@ Cancel a previous request to fetch a remote HTTP resource.
4646
4747A `%cancel-request` `task` does not take any arguments, the [request](#request) to cancel is determined implicitly.
4848
49−## Returns
49+### Returns
5050
5151Iris does not return any `gift` in response to a `%cancel-request` `task`. You will also not receive any `gift` back from the original `%request` `task` you've cancelled.
5252
53−# `%receive`
53+## `%receive`
5454
5555```hoon
5656[%receive id=@ud =http-event:http]
@@ -58,6 +58,4 @@ Iris does not return any `gift` in response to a `%cancel-request` `task`. You w
5858
5959Receives HTTP data from outside. This `task` is sent to Iris by the runtime, you would not used it manually.
6060
61−## Accepts
62−
63−The `id` is a sequential ID for the event and the [$http-event:http](@/docs/arvo/eyre/data-types.md#http-event-http) contains the HTTP headers and data.
61+The `id` is a sequential ID for the event and the [$http-event:http](/docs/arvo/eyre/data-types#http-eventhttp) contains the HTTP headers and data.