You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Webmention.send_webmention` will return either a `Webmention::Response` or a `Webmention::ErrorResponse`. Instances of both classes respond to `ok?`. Building on the examples above:
19
-
20
-
A `Webmention::ErrorResponse` may be returned when:
18
+
`Webmention.send_webmention` will return either a `Webmention::Response` or a `Webmention::ErrorResponse`. Instances of both classes respond to `ok?`. Building on the examples above, a `Webmention::ErrorResponse` may be returned when:
21
19
22
20
1. The target URL does not advertise a Webmention endpoint.
23
21
2. The request to the target URL raises an `HTTP::Error` or an `OpenSSL::SSL::SSLError`.
webmention-client-ruby avoids raising exceptions when making HTTP requests. As noted above, a `Webmention::ErrorResponse` should be returned in cases where an HTTP request triggers an exception.
152
150
153
-
When crawling the supplied URL, `Webmention.mentioned_urls`_may_ raise a `NoMethodError` if:
154
-
155
-
- a `Webmention::ErrorResponse` is returned, or
156
-
- the response is of an unsupported MIME type.
151
+
When crawling the supplied URL, `Webmention.mentioned_urls`_may_ raise a `NoMethodError` if a `Webmention::ErrorResponse` is returned, or the response is of an unsupported MIME type.
0 commit comments