Skip to content

Commit

Permalink
Release v2.1.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhenjie committed Feb 20, 2021
1 parent 582a5ff commit 9ed8948
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,24 @@ GET http://.../user/uid_001?fields=id,name,age
PUT http://.../user/uid_001
```

For documentation and additional information see [the website](https://www.yanzhenjie.com/AndServer).
Get connection information with the client:

```java
@GetMapping(path = "/connection")
void getConnection(HttpRequest request, ...) {
request.getLocalAddr(); // HostAddress
request.getLocalName(); // HostName
request.getLocalPort(); // server's port

request.getRemoteAddr(); // HostAddress
request.getRemoteHost(); // Especially HostName, second HostAddress
request.getRemotePort(); // client's port

...
}
```

For documentation and additional information see [the website](https://yanzhenjie.com/AndServer).

## Reverse Proxy Server

Expand Down Expand Up @@ -110,7 +127,7 @@ buildscript {
}
dependencies {
classpath 'com.yanzhenjie.andserver:plugin:2.1.7'
classpath 'com.yanzhenjie.andserver:plugin:2.1.8'
...
}
}
Expand All @@ -125,8 +142,8 @@ apply plugin: 'com.yanzhenjie.andserver'
...
dependencies {
implementation 'com.yanzhenjie.andserver:api:2.1.7'
annotationProcessor 'com.yanzhenjie.andserver:processor:2.1.7'
implementation 'com.yanzhenjie.andserver:api:2.1.8'
annotationProcessor 'com.yanzhenjie.andserver:processor:2.1.8'
...
}
```
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
android.useAndroidX=true

PROJECT_GROUP=com.yanzhenjie.andserver
PROJECT_VERSION=2.1.7
PROJECT_VERSION=2.1.8

POM_DESCRIPTION=Android web server.

Expand Down

0 comments on commit 9ed8948

Please sign in to comment.