Skip to content

Commit 3d1cb0c

Browse files
authored
Javadoc badges (#393)
* javadoc badges * update javadoc typos * fix doc
1 parent 28dc58a commit 3d1cb0c

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# [Avaje-HTTP](https://avaje.io/http/)
2+
[![Discord](https://img.shields.io/discord/1074074312421683250?color=%237289da&label=discord)](https://discord.gg/Qcqf9R27BR)
23
[![Build](https://github.com/avaje/avaje-http/actions/workflows/build.yml/badge.svg)](https://github.com/avaje/avaje-http/actions/workflows/build.yml)
34
[![Maven Central : avaje-inject](https://img.shields.io/maven-central/v/io.avaje/avaje-http-api.svg?label=Maven%20Central)](https://maven-badges.herokuapp.com/maven-central/io.avaje/avaje-http-api)
5+
[![javadoc](https://javadoc.io/badge2/io.avaje/avaje-http-api/http_api_javadoc.svg?&color=purple)](https://javadoc.io/doc/io.avaje/avaje-http-api)
6+
[![javadoc](https://javadoc.io/badge2/io.avaje/avaje-http-client/http_client_javadoc.svg?&color=purple)](https://javadoc.io/doc/io.avaje/avaje-http-client)
47
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/avaje/avaje-inject/blob/master/LICENSE)
5-
[![Discord](https://img.shields.io/discord/1074074312421683250?color=%237289da&label=discord)](https://discord.gg/Qcqf9R27BR)
68

79
HTTP server and client libraries via code generation.
810

http-client/src/main/java/io/avaje/http/client/HttpClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.net.Authenticator;
44
import java.net.CookieHandler;
55
import java.net.ProxySelector;
6+
import java.net.http.HttpRequest;
67
import java.time.Duration;
78
import java.util.Map;
89
import java.util.concurrent.Executor;
@@ -69,7 +70,7 @@ static Builder builder() {
6970
HttpClientRequest request();
7071

7172
/**
72-
* Return a UrlBuilder to use to build an URL taking into account the base URL.
73+
* Returns a UrlBuilder to build a URL, considering the base URL.
7374
*/
7475
UrlBuilder url();
7576

http-client/src/main/java/io/avaje/http/client/HttpClientResponse.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public interface HttpClientResponse {
6363
/**
6464
* Return the response with the body containing a single instance of the given type.
6565
* <p>
66-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
66+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
6767
* the HttpResponse. This is the cause in the CompletionException when using an async request.
6868
*
6969
* @param type The type of the bean to convert the response content into.
@@ -76,7 +76,7 @@ public interface HttpClientResponse {
7676
/**
7777
* Return the response with the body containing a single instance of the given type.
7878
* <p>
79-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
79+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
8080
* the HttpResponse. This is the cause in the CompletionException when using an async request.
8181
*
8282
* @param type The type of the bean to convert the response content into.
@@ -88,7 +88,7 @@ public interface HttpClientResponse {
8888
/**
8989
* Return the response with the body containing a list of the given type.
9090
* <p>
91-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
91+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
9292
* the HttpResponse. This is the cause in the CompletionException when using an async request.
9393
*
9494
* @param type The type of the bean to convert the response content into.
@@ -101,7 +101,7 @@ public interface HttpClientResponse {
101101
/**
102102
* Return the response with the body containing a list of the given type.
103103
* <p>
104-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
104+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
105105
* the HttpResponse. This is the cause in the CompletionException when using an async request.
106106
*
107107
* @param type The type of the bean to convert the response content into.
@@ -122,7 +122,7 @@ public interface HttpClientResponse {
122122
* may not be available at the time of the callback. As such {@link RequestLogger}
123123
* will not include response content when logging stream request/response
124124
* <p>
125-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
125+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
126126
* the HttpResponse. This is the cause in the CompletionException when using an async request.
127127
*
128128
* @param type The type of the bean to convert the response content into.
@@ -143,7 +143,7 @@ public interface HttpClientResponse {
143143
* may not be available at the time of the callback. As such {@link RequestLogger}
144144
* will not include response content when logging stream request/response
145145
* <p>
146-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
146+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
147147
* the HttpResponse. This is the cause in the CompletionException when using an async request.
148148
*
149149
* @param type The type of the bean to convert the response content into.
@@ -156,7 +156,7 @@ public interface HttpClientResponse {
156156
/**
157157
* Return the response as a single bean.
158158
* <p>
159-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
159+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
160160
* the HttpResponse. This is the cause in the CompletionException when using an async request.
161161
*
162162
* @param type The type of the bean to convert the response content into.
@@ -169,7 +169,7 @@ public interface HttpClientResponse {
169169
/**
170170
* Return the response as a list of beans.
171171
* <p>
172-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
172+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
173173
* the HttpResponse. This is the cause in the CompletionException when using an async request.
174174
*
175175
* @param type The type of the bean to convert the response content into.
@@ -190,7 +190,7 @@ public interface HttpClientResponse {
190190
* may not be available at the time of the callback. As such {@link RequestLogger}
191191
* will not include response content when logging stream request/response
192192
* <p>
193-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
193+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
194194
* the HttpResponse. This is the cause in the CompletionException when using an async request.
195195
*
196196
* @param type The type of the bean to convert the response content into.
@@ -203,7 +203,7 @@ public interface HttpClientResponse {
203203
/**
204204
* Return the response as a single bean.
205205
* <p>
206-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
206+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
207207
* the HttpResponse. This is the cause in the CompletionException when using an async request.
208208
*
209209
* @param type The type of the bean to convert the response content into.
@@ -215,7 +215,7 @@ public interface HttpClientResponse {
215215
/**
216216
* Return the response as a list of beans.
217217
* <p>
218-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
218+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
219219
* the HttpResponse. This is the cause in the CompletionException when using an async request.
220220
*
221221
* @param type The type of the bean to convert the response content into.
@@ -235,7 +235,7 @@ public interface HttpClientResponse {
235235
* may not be available at the time of the callback. As such {@link RequestLogger}
236236
* will not include response content when logging stream request/response
237237
* <p>
238-
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
238+
* If the HTTP statusCode is not in the 2XX range, an HttpException is thrown containing
239239
* the HttpResponse. This is the cause in the CompletionException when using an async request.
240240
*
241241
* @param type The type of the bean to convert the response content into.

0 commit comments

Comments
 (0)