http

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package http provides HTTP client utilities for inter-agent communication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSON

func GetJSON(ctx context.Context, client *http.Client, url string, response interface{}) error

GetJSON makes a GET request and decodes the JSON response.

func HealthCheck

func HealthCheck(ctx context.Context, client *http.Client, baseURL string) error

HealthCheck checks if a service is healthy by calling its /health endpoint.

func PostJSON

func PostJSON(ctx context.Context, client *http.Client, url string, request interface{}, response interface{}) error

PostJSON makes a POST request with JSON payload and decodes the JSON response.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL