Codegen for HttpInfrastructure does not support OPTIONS HTTP method yet because of a dependency in azure-core. HttpMethod enum in azure-core does not define this HTTP method in the current released version. PR Azure/azure-sdk-for-java#6729 fixes azure-core but autorest will not be able to use it until the next version of core is released.