Skip to content

Project riff | KNative | Spring Cloud Functions | Spring Cloud Gateway

Notifications You must be signed in to change notification settings

daggerok/knative-riff-spring-cloud-function

Repository files navigation

knative-riff-spring-cloud-function Build Status

Project riff | KNative | Spring Cloud Functions | Spring Cloud Gateway

Status: IN PROGRESS

plain java

request:

http :8000/function name=real
# output:
HTTP/1.1 200 OK
Content-Length: 16
Content-Type: application/json
accept-encoding: gzip, deflate
connection: keep-alive
user-agent: HTTPie/2.0.0

response:

{
    "upper": "REAL"
}

request:

http post :8080/api/function name=gw
# output:
HTTP/1.1 200 OK
Content-Length: 14
Content-Type: application/json
Content-Type: application/json
accept-encoding: gzip, deflate
forwarded: proto=http;host="localhost:8080";for="0:0:0:0:0:0:0:1:56827"
user-agent: HTTPie/2.0.0
x-forwarded-for: 0:0:0:0:0:0:0:1
x-forwarded-host: localhost:8080
x-forwarded-port: 8080
x-forwarded-prefix: /api
x-forwarded-proto: http

response:

{
  "upper": "GW"
}

docker / docker-compose

docker-compose build --force-rm --no-cache
docker-compose up --build
http :/api/function name=docker

resources

About

Project riff | KNative | Spring Cloud Functions | Spring Cloud Gateway

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published