Azure / Azure-Functions

1.11k stars 195 forks source link

com.microsoft.azure.functions.HttpResponseMessage is not generic #1608

Open cristianpetrache opened 4 years ago

cristianpetrache commented 4 years ago

The javadoc in com.microsoft.azure.functions.annotation.HttpTrigger presents com.microsoft.azure.functions.HttpResponseMessage as if it were generic (which actually makes a lot of sense), but the http response message code does not support generics.

v-bbalaiagar commented 3 years ago

Hi @cristianpetrache, Apologies for the delayed response, the issue was somehow lost in the trace. Can you tell us if you are still facing this issue.

cristianpetrache commented 3 years ago

Hi @v-bbalaiagar, I stopped using the api last year as it was only for a PoC. However, looking at the current documentation, the problem seems to have persisted. The doc at https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.functions.annotation.httptrigger?view=azure-java-stable shows an example of an FunctionName annotated method. The result is of type HttpResponseMessage. However, the api doc for HttpResponseMessage presents it as a non generic type: https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.functions.httpresponsemessage?view=azure-java-stable.

v-bbalaiagar commented 3 years ago

Hi @cristianpetrache, Thank you for your feedback! We will check for the possibilities internally and update you with the findings.

RockyMM commented 2 years ago

Hi all. I also propose that HttpResponseMessage supports generics.