NetTalk Central

Author Topic: Small and fast response  (Read 711 times)

AtoB

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • Email
Small and fast response
« on: September 07, 2026, 10:02:20 AM »
Hi All,

I want my api-server to respond in the fastest way possible for some http (4xx) errors. Just a minimal header and no body at all.

I've looked p_Web.SendError(), but it always includes .html in the response body.

What's the way to construct a minimal response?

TIA,
Ton

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11341
    • View Profile
Re: Small and fast response
« Reply #1 on: September 21, 2026, 01:12:49 PM »
I think you'll find the current error fits inside the minimum TCP packet size. You won't see any performance difference making it smaller.

But of course you can derive your own code into the SendError (or wherever) to send back whatever you like.