Skip to content

Base HTTP Connection

Base parameters for HTTP connections to external services.


General Information:

Type ID Module Category
1 httplib api

BaseHttpConnectionParams

Parameters:

  • url : HttpUrl

Input Parameters:

Field Type Required Description Default value Examples
url HttpUrl Service endpoint full URL PydanticUndefined https://api.example.com/endpoint
headers Optional[dict[str, str]] Additional HTTP headers to include in the request None {"Authorization": "Bearer token", "Content-Type": "application/json"}
method Literal[GET, POST, PUT, DELETE, PATCH] HTTP method to use GET POST
body Optional[dict[str, Any]] JSON body of the request None {"key": "value"}
verify_ssl bool Whether to validate the SSL certificate True True

Example:

{
  "url": "https://api.example.com/endpoint",
  "headers": {
    "Authorization": "Bearer token"
  },
  "method": "POST",
  "body": {
    "key": "value"
  },
  "verify_ssl": true
}

Notes:

This class inherits from pydantic.BaseModel, which provides validation