File tree Expand file tree Collapse file tree
main/java/com/predic8/membrane/core
test/java/com/predic8/membrane/core
interceptor/llmgateway/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* Copyright 2026 predic8 GmbH, www.predic8.com
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License. */
14+
115package com .predic8 .membrane .core .interceptor .llmgateway ;
216
317import com .predic8 .membrane .core .exchange .Exchange ;
Original file line number Diff line number Diff line change 1+ /* Copyright 2026 predic8 GmbH, www.predic8.com
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License. */
14+
115package com .predic8 .membrane .core .interceptor .llmgateway ;
216
317import com .predic8 .membrane .core .exchange .Exchange ;
Original file line number Diff line number Diff line change 1+ /* Copyright 2026 predic8 GmbH, www.predic8.com
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License. */
14+
115package com .predic8 .membrane .core .interceptor .llmgateway ;
216
317import com .predic8 .membrane .annot .MCAttribute ;
Original file line number Diff line number Diff line change 2020
2121import static com .predic8 .membrane .core .http .MimeType .*;
2222import static com .predic8 .membrane .core .util .text .SerializationFunction .*;
23+ import static com .predic8 .membrane .core .util .text .ToTextSerializer .toText ;
2324import static java .lang .Character .*;
2425import static java .nio .charset .StandardCharsets .*;
2526
@@ -150,7 +151,7 @@ public static String pathEncode(Object value) {
150151 public static String headerValueEncode (Object value ) {
151152 if (value == null ) return "" ;
152153
153- String s = value . toString ( );
154+ String s = toText ( value );
154155 var out = new StringBuilder (s .length ());
155156
156157 for (int i = 0 ; i < s .length (); i ++) {
@@ -165,4 +166,4 @@ public static String headerValueEncode(Object value) {
165166
166167 return out .toString ();
167168 }
168- }
169+ }
Original file line number Diff line number Diff line change 1+ /* Copyright 2026 predic8 GmbH, www.predic8.com
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License. */
14+
115package com .predic8 .membrane .core .interceptor .llmgateway .provider ;
216
317import com .predic8 .membrane .core .exchange .Exchange ;
Original file line number Diff line number Diff line change 1+ /* Copyright 2026 predic8 GmbH, www.predic8.com
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License. */
14+
115package com .predic8 .membrane .core .lang ;
216
317import com .predic8 .membrane .core .router .DefaultRouter ;
You can’t perform that action at this time.
0 commit comments