Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antolius/spring-cloud-gateway-examples-query-length
An example project that illustrates how to configure Netty server that Spring Cloud Gateway is based on to accept long query parameters.
https://github.com/antolius/spring-cloud-gateway-examples-query-length
Last synced: 25 days ago
JSON representation
An example project that illustrates how to configure Netty server that Spring Cloud Gateway is based on to accept long query parameters.
- Host: GitHub
- URL: https://github.com/antolius/spring-cloud-gateway-examples-query-length
- Owner: Antolius
- Created: 2020-07-14T23:15:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T19:42:46.000Z (over 4 years ago)
- Last Synced: 2024-10-25T09:16:38.212Z (2 months ago)
- Language: Java
- Size: 56.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Cloud Gateway Query Length Example
An example project that illustrates how to configure Netty server that [Spring Cloud Gateway](https://spring.io/projects/spring-cloud-gateway) is based on to accept long query parameters.
# Use-case
By default, Spring Cloud Gateway project can handle HTTP requests with around 8000 characters worth of query parameters. In this case app is required to handle larger query parameters.
# Getting started
In case you want to run the app yourself, feel free to clone the git repo and play around with it.
### Prerequisites
This projct uses:
* [Java 14](https://openjdk.java.net/projects/jdk/14/)
* [Maven](https://maven.apache.org/)### Installing
Like with any maven project, you can:
```shell script
$ mvn clean install
```## Testing
Tests use [WireMock](http://wiremock.org/) to simulate the downstream server and [`WebTestClient`](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/test/web/reactive/server/WebTestClient.html) to simulate the client. Test boots up the app and then makes HTTP requests, which are proxied to the WireMock server.
You an run test with maven:
```shell script
$ mvn test
```## Author
* [Josip Antoliš](https://github.com/Antolius)