All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.azure.functions.resteasy.runtime.Function Maven / Gradle / Ivy

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