forked from micronaut-projects/micronaut-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup - section 7.1.7 completed section 7.1
- Loading branch information
Showing
22 changed files
with
378 additions
and
347 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
http-client/src/test/groovy/io/micronaut/http/client/docs/sse/HeadlineClient.java
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
http-client/src/test/groovy/io/micronaut/http/client/docs/sse/HeadlineController.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
http-client/src/test/groovy/io/micronaut/http/client/docs/sse/HeadlineControllerTest.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
http-client/src/test/groovy/io/micronaut/http/client/docs/streaming/HeadlineClient.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
http-client/src/test/groovy/io/micronaut/http/client/docs/streaming/HeadlineController.java
This file was deleted.
Oops, something went wrong.
104 changes: 0 additions & 104 deletions
104
...lient/src/test/groovy/io/micronaut/http/client/docs/streaming/HeadlineControllerTest.java
This file was deleted.
Oops, something went wrong.
14 changes: 5 additions & 9 deletions
14
src/main/docs/guide/httpClient/lowLevelHttpClient/bindErrors.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
Often you want to consume an endpoint and bind to a POJO if the request is successful or bind to a different POJO if an error occurs. The following example shows how to invoke `exchange` with a success and error type. | ||
|
||
[source,java] | ||
---- | ||
include::{testsclient}/httpclientexceptionbody/BooksController.java[tag=clazz,indent=0] | ||
---- | ||
|
||
[source,groovy] | ||
---- | ||
include::{testsclient}/httpclientexceptionbody/BindHttpClientExceptionBodySpec.groovy[tags=test, indent=0] | ||
---- | ||
snippet::io.micronaut.docs.httpclientexceptionbody.BooksController[tags="clazz", indent=0] | ||
|
||
''' | ||
|
||
snippet::io.micronaut.docs.httpclientexceptionbody.BindHttpClientExceptionBodySpec[tags="test", indent=0] | ||
|
||
<1> Success Type | ||
<2> Error Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.