Skip to main content

Questions tagged [http]

For code that acts as a HTTP client or server.

8 votes
3 answers
129 views

I am writing tests for legacy software which has a dependency on CGI scripts on a remote machine. Mocking the dependency would entail modifying the code under test, which is a thing I cannot do at the ...
Afelium's user avatar
  • 133
6 votes
2 answers
181 views

For context, I'm very new to Rust, and I'm trying to learn the best practices and nuances of it as I go. I've written this small function that takes a ...
Jessica's user avatar
  • 910
0 votes
1 answer
166 views

This code parses a series of Uint8Arrays that comprise a Transfer-Encoding: chunked request ...
guest271314's user avatar
11 votes
2 answers
1k views

I'm new to C and just finished K&R. This is a code that I've written to parse headers of a HTTP request. I want to know if my code: Is safe? (after all this is C) Does proper exit on failure? Are ...
Mehan Alavi's user avatar
4 votes
1 answer
113 views

I’ve developed a Go program to benchmark a FHIR server by uploading a dataset of FHIR resources concurrently. The goal is to stress-test the server by sending a specified number (...
Martin Hinze's user avatar
1 vote
0 answers
45 views

If you want all the code in a buildable format from the last 10 or so posts. You can find it here: The PathMatcher object allows you to register paths with named sections of the path. But there are ...
Loki Astari's user avatar
  • 97.7k
1 vote
0 answers
41 views

The Pynt class defined the interface between the NisseServer object and code that handles input on a stream. This proivdes an ...
Loki Astari's user avatar
  • 97.7k
1 vote
1 answer
63 views

When adding header data to the response. We accept what the user is telling us and do no conversion of the data. But: The Response object (and its stream) is going to handle the encoding/ transport. ...
Loki Astari's user avatar
  • 97.7k
1 vote
0 answers
61 views

This is my first "real" attempt at decoding an HTTP request on the server side. This is the interface I think should be sufficient. However, because I am new to the details I would love to ...
Loki Astari's user avatar
  • 97.7k
2 votes
0 answers
59 views

Questions Are there edge-cases that I've missed? Do HTTP response header values ever contain JSON-like data? Any style pointers related to code readability? Are there other/better Vim (versions 8 or ...
S0AndS0's user avatar
  • 978
4 votes
1 answer
152 views

Code ...
Dang Quang Vinh's user avatar
4 votes
0 answers
135 views

Recently I needed to support someone who wanted to ingest some data from on of our API's but had tooling that struggled with the authentication bit. While I'm sure there are some off-the-shelf ...
ChrisWue's user avatar
  • 20.6k
3 votes
1 answer
197 views

I'm brand new to using rust, so please bear with me. I'm trying to write a rust program which takes two arguments: A URL, and a wordlist. This wordlist has the following contents, and is several ...
TmDobbin's user avatar
3 votes
1 answer
173 views

I am trying to write an HTTP/1.0 (RFC 1945) parser in C, so I started with the Request-Line. Ideally, the parser should return one of the three: The request is valid. The request is malformed, but ...
Schilive's user avatar
  • 283

15 30 50 per page
1
2 3 4 5
28