Network Utilities

Http Method Info

Returns detailed specifications for HTTP methods like GET, POST, PUT, DELETE, and others. Access via MCP in Cursor or Windsurf, or GET /v1/network/http-method with a method parameter. Example: query "PATCH" returns idempotency rules, request body requirements, and RFC compliance details. Essential for API development and debugging network protocols.

API Endpoint

GET /v1/network/http-method

Code Examples

curl "https://tinyfn.io/v1/network/http-method" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/network/http-method', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/network/http-method',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's network tools:

{
  "mcpServers": {
    "tinyfn-network": {
      "url": "https://tinyfn.io/mcp/network",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What HTTP method information does this tool provide?

Returns method semantics, idempotency behavior, safe/unsafe classification, request body allowance, cacheable status, and RFC specifications for standard and extension methods.

How do I check if an HTTP method is idempotent using MCP?

Use the tool with any method name like "PUT" or "DELETE" - the response includes an idempotent boolean field and explanation of the method's idempotency guarantees.

Does it support non-standard HTTP methods like PATCH or custom verbs?

Yes, covers RFC 7231 standard methods (GET, POST, PUT, DELETE, etc.) plus common extensions like PATCH, OPTIONS, HEAD, and can provide information on custom methods.

Can AI agents use this to validate REST API designs?

Absolutely - agents can query method semantics to ensure proper HTTP verb usage, check idempotency requirements, and validate API endpoint designs against HTTP standards.

What's the difference between safe and idempotent HTTP methods?

Safe methods (GET, HEAD, OPTIONS) don't modify server state, while idempotent methods (GET, PUT, DELETE) produce the same result when called multiple times - POST is neither.

Try Http Method Info Now

Get your free API key and start using Http Method Info in seconds.

Get Free API Key