Skip to content

Commit e196c14

Browse files
committed
Added doc
1 parent 10ef11e commit e196c14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/mint/http.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,12 @@ defmodule Mint.HTTP do
759759
You can have zero or more `1xx` `:status` and `:headers` responses for a
760760
single request, but they all precede a single non-`1xx` `:status` response.
761761
762+
* `{:status_reason, request_ref, reason_phrase}` - returned when the server replied
763+
with a response status code and a reason-phrase. The reason-phrase is a string.
764+
Returned when the `:optional_responses` option is passed to `connect/4`, with
765+
`:status_reason` in the list. See `Mint.HTTP1.connect/4` for more information.
766+
This is only available for HTTP/1.1 connections. *Available since v1.7.2*.
767+
762768
* `{:headers, request_ref, headers}` - returned when the server replied
763769
with a list of headers. Headers are in the form `{header_name, header_value}`
764770
with `header_name` and `header_value` being strings. A single `:headers` response

0 commit comments

Comments
 (0)