Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion http-client/src/main/java/io/avaje/http/client/DUrlBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ final class DUrlBuilder implements UrlBuilder {

@Override
public UrlBuilder url(String url) {
buffer.delete(0, buffer.length());

if (url.startsWith("http") && url.contains("://")) {
buffer.setLength(0);
}

buffer.append(url);
return this;
}

@Override
public UrlBuilder path(String path) {
if (path.startsWith("http") && path.contains("://")) {
buffer.setLength(0);
return this;
}
buffer.append("/").append(path);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package io.avaje.http.generator.client.clients;

public class Titan {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package io.avaje.http.generator.client.clients;

import io.avaje.http.api.Client;
import io.avaje.http.api.Get;

@Client
public interface TitanFall {

@Get("/${titan}/${drop.point}")
Titan titanfall();
}