简体   繁体   English

如何使用 IntelliJ 同时发出多个 HTTP 请求

[英]How to Make Multiple HTTP requests at the same time using IntelliJ

I want to test the concurrency of an REST endpoint.我想测试 REST 端点的并发性。

How can I send two simultaneous HTTP requests to the same endpoint using Intellij?如何使用 Intellij 将两个同时的 HTTP 请求发送到同一端点?

I found this question answered for Postman, but I am wondering if there is a way to do it using Intellij我发现这个问题回答了 Postman,但我想知道是否有办法使用 Intellij

This can be implemented using Scratch files (the type of HTTP Request ).这可以使用Scratch 文件HTTP Request的类型)来实现。

You can allow queries to run in parallel using the run/debug configuration :您可以使用运行/调试配置允许查询并行运行:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM