Hello,

I am using the URL library to interact with a REST API. 

One of the Endpoints sends returns no content for a POST request with a status 
code of 204 (a little unusual however it is an external API so we have to cater 
to it).

I can check the status code for 204 and only apply string->port if it isn't a 
204 - however I was wondering if there is any check that can be made at the 
port level that no content will be written - in case we encounter a malformed 
response which does not send through a body. 

Currently without the checks port->string will hang on a 204 response.

This would be good to know more generally when dealing with ports as well.

Kind regards,
Sean

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to