HttpRequest

HTTP request configuration for Apache HttpComponents client

ApacheHTTP ClientJavaOpen SourceSDK

Properties

Name Type Description
method string HTTP method
uri string Request URI
headers object Request headers as key-value pairs
body string Request body content
contentType string Content-Type header value
View JSON Schema on GitHub

JSON Schema

http-client-httprequest-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/apache-http/json-schema/http-client-httprequest-schema.json",
  "title": "HttpRequest",
  "type": "object",
  "description": "HTTP request configuration for Apache HttpComponents client",
  "properties": {
    "method": {
      "type": "string",
      "description": "HTTP method",
      "example": "GET"
    },
    "uri": {
      "type": "string",
      "description": "Request URI",
      "example": "https://api.example.com/data"
    },
    "headers": {
      "type": "object",
      "description": "Request headers as key-value pairs",
      "example": {
        "Accept": "application/json",
        "Authorization": "Bearer token"
      }
    },
    "body": {
      "type": "string",
      "description": "Request body content",
      "example": "{\"key\": \"value\"}"
    },
    "contentType": {
      "type": "string",
      "description": "Content-Type header value",
      "example": "application/json"
    }
  }
}