XHttpClient is a simple and powerful web application designed to test and send HTTP requests, and view responses in real-time. Perfect for developers, testers, and anyone working with APIs. It provides an intuitive interface to send GET, POST, PUT, DELETE requests, manage headers, and view structured JSON responses.
- Send HTTP Requests: Test GET, POST, PUT, DELETE requests with any URL.
- Customizable Headers: Easily add and modify HTTP headers for each request.
- Real-Time Responses: View the response body, status code, and time.
- JSON Formatting: Automatically format JSON responses for easy viewing.
- Modern UI: Clean, user-friendly design built with Tailwind CSS.
- Vite: Fast development and build tool for modern web applications.
- TypeScript: Statically typed language for enhanced productivity and error-checking.
- Tailwind CSS: Utility-first CSS framework for fast and responsive design.
git clone https://github.com/pradeepkumarverma1/x-http-client
cd x-http-client
Make sure you have Node.js installed. Then, install the required dependencies using npm:
npm install
Run the app in development mode:
npm run dev
This will start the app locally at http://localhost:5173
.
To deploy your application, build the project with the following command:
npm run build
You can then deploy the contents of the dist
folder to your preferred hosting platform, such as Vercel, Netlify, or GitHub Pages.
- Enter URL: Input the API endpoint URL in the "Request URL" field.
- Select Method: Choose the HTTP method (GET, POST, PUT, DELETE).
- Add Headers: Add custom headers to the request as needed.
- Send Request: Hit "Send" to execute the request.
- View Response: The response body, status, and time will be displayed in real-time.
- Environment Variables: Manage different environments (development, staging, production) for endpoints.
- Request History: Save previous requests for reuse.
- Request Templates: Allow saving common request templates for quicker access.
Feel free to fork the repository and submit pull requests. For bugs or feature requests, please create an issue. Contributions are welcome!