io.quarkus.azure.functions.resteasy.runtime.Function Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-azure-functions-http Show documentation
Show all versions of quarkus-azure-functions-http Show documentation
Write Microsoft Azure functions
The newest version!
package io.quarkus.azure.functions.resteasy.runtime;
import static com.microsoft.azure.functions.HttpMethod.*;
import java.util.Optional;
import com.microsoft.azure.functions.ExecutionContext;
import com.microsoft.azure.functions.HttpRequestMessage;
import com.microsoft.azure.functions.HttpResponseMessage;
import com.microsoft.azure.functions.annotation.AuthorizationLevel;
import com.microsoft.azure.functions.annotation.FunctionName;
import com.microsoft.azure.functions.annotation.HttpTrigger;
public class Function extends BaseFunction {
public static final String QUARKUS_HTTP = "QuarkusHttp";
@FunctionName(QUARKUS_HTTP)
public HttpResponseMessage run(
@HttpTrigger(name = "req", dataType = "binary", route = "{*path}", authLevel = AuthorizationLevel.ANONYMOUS, methods = {
GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE,
PATCH }) HttpRequestMessage> request,
ExecutionContext context) {
return dispatch(request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy