Questions tagged [http]
HyperText Transfer Protocol - a textual system for representing web requests and replies.
391 questions
1 vote
3 answers
243 views
Should HTTP clients be encapsulated in a C#/.NET library?
I have a C# library that contains all the logic to send requests to a remote endpoint, including marshalling/unmarshalling and encrypting/decrypting requests and responses. It contains an HttpClient ...
4 votes
2 answers
310 views
Scope of 400 Bad Request
Here's the description of 422 Unprocessable Entity: The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity (hence a 415 (Unsupported Media Type)...
1 vote
2 answers
341 views
Updating PUT endpoint receiving non-existing id
Imagine an updating PUT endpoint receives a DTO that contains an id that corresponds to no record. { id: 12345, name: "George" } Options I see: Do nothing. Return an error response. ...
-4 votes
1 answer
103 views
How to develop portable HTTP clients across js/ts web frameworks? [closed]
Related: Best practice for interoperable TypeScript→JavaScript? - Frameworks, browser extensions Angular, React, Vue, Svelte &etc. exist and are popular. Some use rxjs to flow from HTTP response, ...
2 votes
5 answers
3k views
Pattern Matching on Request Body for Routing an HTTP Request
In an HTTP application, I think about routing requests based not only on the path, but also based on the request body. For an example, think about the following two different body schemas for a PUT ...
0 votes
1 answer
203 views
Architectural decision regarding at-most-once semantics cron jobs in distributed systems
please note that while I refer to a specific web application framework in the following, the problem also arises with most other web application frameworks I know so please don't be afraid to reply ...
0 votes
1 answer
546 views
How to view the exact raw HTTP request on Postman? [closed]
When I'm sending a request, the raw log looks something like this: GET / HTTP/1.1 User-Agent: PostmanRuntime/7.36.3 Accept: */* Cache-Control: no-cache Postman-Token: 3d4eba45-388c-462c-a174-...
-2 votes
3 answers
274 views
Why does the HTTP protcol support multiple methods?
This is a question which I have had in the back of my mind for a significant length of time, but never found an answer to, and never thought to directly ask - until today. I am interested to ...