Skip to content

Commit

Permalink
Update site/src/pages/release-notes/1.31.0.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Trustin Lee <[email protected]>
  • Loading branch information
jrhee17 and trustin authored Nov 14, 2024
1 parent 72301d6 commit 42d03e6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions site/src/pages/release-notes/1.31.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ date: 2024-11-13
.tlsProvider(tlsProvider);
```
- **Access to Raw Request Path**: You can access the raw request path via <type://ServiceRequestContext#rawPath()>. #5931 #5932
```java
ServiceRequestContext ctx = ...;
String rawPath = ctx.rawPath();
```
- This can be useful when you need to get the original request path sent from the client, even if its potentially insecure.
```java
ServiceRequestContext ctx = ...;
String rawPath = ctx.rawPath();
// rawPath may contain unencoded, invalid or insecure characters.
```
- **Additional Static Factory Methods for ResponseEntity**: More static factory methods are added for <type://ResponseEntity>. #5954
```java
ResponseEntity<Object> response = ResponseEntity.of(200);
Expand Down

0 comments on commit 42d03e6

Please sign in to comment.