File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
http_lanes/src/main/java/swim/basic Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- swim.version =3.11.0
1
+ swim.version =4.0.1
Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ public class UnitAgent extends AbstractAgent {
25
25
HttpLane <Value > http = this .<Value >httpLane ()
26
26
.doRespond (request -> {
27
27
if (HttpMethod .POST .equals (request .method ())) {
28
- this .state .set (request .entity ().get ());
28
+ this .state .set (request .payload ().get ());
29
29
}
30
- return HttpResponse .from (HttpStatus .OK )
30
+ return HttpResponse .create (HttpStatus .OK )
31
31
.body (Recon .toString (this .state .get ()), MediaType .applicationXRecon ());
32
32
});
33
33
34
34
@ SwimLane ("httpJson" )
35
35
HttpLane <Value > httpJson = this .<Value >httpLane ()
36
36
.doRespond (request ->
37
- HttpResponse .from (HttpStatus .OK )
37
+ HttpResponse .create (HttpStatus .OK )
38
38
.body (Json .toString (this .state .get ()), MediaType .applicationJson ()));
39
39
40
40
@ Override
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ afterEvaluate {
48
48
' --patch-module' , " $moduleName =" + files(sourceSets. main. resources. srcDirs). asPath]
49
49
options. encoding = ' UTF-8'
50
50
source = sourceSets. main. allJava
51
- sourceCompatibility = JavaVersion . VERSION_1_9
52
- targetCompatibility = JavaVersion . VERSION_1_9
51
+ sourceCompatibility = JavaVersion . VERSION_11
52
+ targetCompatibility = JavaVersion . VERSION_11
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments