com.azure.core.http.HttpMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core Show documentation
Show all versions of azure-core Show documentation
This package contains core types for Azure Java clients.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.http;
/**
* Represents the HTTP methods that can be used in a request.
*
* This enum encapsulates the HTTP methods that can be used in a request, such as GET, PUT, POST, PATCH, DELETE,
* HEAD, OPTIONS, TRACE, and CONNECT.
*
* This enum is useful when you want to specify the HTTP method of a request. For example, you can use it when
* creating an instance of {@link HttpRequest}.
*
* Note: The HTTP methods are defined by the HTTP/1.1 specification (RFC 2616) and
* the HTTP/2 specification (RFC 7540).
*/
public enum HttpMethod {
/**
* The HTTP GET method.
*/
GET,
/**
* The HTTP PUT method.
*/
PUT,
/**
* The HTTP POST method.
*/
POST,
/**
* The HTTP PATCH method.
*/
PATCH,
/**
* The HTTP DELETE method.
*/
DELETE,
/**
* The HTTP HEAD method.
*/
HEAD,
/**
* The HTTP OPTIONS method.
*/
OPTIONS,
/**
* The HTTP TRACE method.
*/
TRACE,
/**
* The HTTP CONNECT method.
*/
CONNECT
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy