Skip to content

Features & Examples

Fernando Prieto Moyano edited this page Dec 27, 2025 · 1 revision

Features & Examples

1. HTTP/HTTPS Requests

Make HTTP requests with any method (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS).

Simple GET request:

"Get data from https://api.example.com/posts/1"

GET with query parameters:

"GET https://api.github.com/search/repositories with params q=kotlin and sort=stars"

POST with JSON body:

"POST to https://api.example.com/users with body {name: 'John', email: 'john@example.com'}"

POST with custom headers:

"Send POST request to https://api.example.com/users with header Authorization: Bearer token123 and JSON body {name: 'Alice'}"

PUT request:

"Update user at https://api.example.com/users/42 with PUT method and body {status: 'active'}"

DELETE request:

"Delete resource at https://api.example.com/users/42 with Authorization header Bearer token123"

2. Multiple Content Types

Support for different body formats makes it easy to work with various APIs.

Form Data (multipart/form-data):

"POST to https://api.example.com/upload with bodyType FORM_DATA and body {
  username: 'admin',
  password: 'secret123',
  remember: 'true'
}"

URL-Encoded (application/x-www-form-urlencoded):

"POST to https://api.example.com/login with bodyType X_WWW_FORM_URLENCODED and body username=admin&password=secret"

JSON (application/json):

"POST to https://api.example.com/users with bodyType JSON and body {name: 'John', email: 'john@example.com'}"

3. GraphQL Queries

Execute GraphQL queries with variables and custom headers.

Simple GraphQL query:

"Query GraphQL at https://api.example.com/graphql: { user(id: 1) { name email } }"

GraphQL with variables:

"GraphQL query to https://api.example.com/graphql with query: { user(id: $userId) { name } } and variable userId=123"

GraphQL with operation name:

"Execute GraphQL query at https://api.example.com/graphql with query: { users { name } } and operationName=GetUsers"

GraphQL with authentication:

"Query GraphQL at https://api.example.com/graphql with header Authorization: Bearer token and query: { me { name email } }"

4. TCP/Telnet Connections

Establish raw TCP socket connections for network testing.

Basic TCP connection:

"Connect via telnet to 192.168.1.1 port 8080"

TCP with custom timeout:

"Test TCP connection to localhost:3000 with timeout 10 seconds"

TCP with message:

"Connect to example.com port 80 and send message: GET / HTTP/1.1"

TCP connection test:

"Check if port 8080 is open on localhost using telnet"

5. Cache Management

The intelligent cache automatically speeds up repeated GET requests by 13.7x. You can manually clear it when needed.

Clear the cache:

"Clear the HTTP cache"

When to clear:

  • Testing API changes
  • Need fresh data immediately
  • After server updates
  • Debugging cache-related issues

The cache automatically:

  • Only caches GET requests
  • Expires entries after 5 minutes
  • Limits to 100 entries (memory efficient)
  • Thread-safe for concurrent requests

Clone this wiki locally