TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Test, Save, and Execute HTTP Requests with Hurl (Or Restclient.el)

5 pointsby jiceaabout 1 month ago

1 comment

gavinrayabout 1 month ago
So, I&#x27;ve used the VS Code and IntelliJ extensions that support &quot;.http&quot; files for making REST requests forever.<p>They&#x27;re incredibly useful for embedding executable API documentation in your projects.<p>What I&#x27;ve always wanted is the ability to embed assertions on the response.<p>Something like:<p><pre><code> POST http:&#x2F;&#x2F;api.mysite.com&#x2F;todo Content-Type: application&#x2F;json { &quot;text&quot;: &quot;Do the dishes&quot; } ASSERT_RESPONSE_MATCHES { &quot;id&quot;: 1, &quot;text&quot;: &quot;Do the dishes&quot; } </code></pre> Currently I do this with manual scripting
评论 #43720456 未加载