Questions tagged [http]
For code that acts as a HTTP client or server.
409 questions
8
votes
3
answers
129
views
Test to ensure CGI can be invoked on a local server
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 ...
6
votes
2
answers
181
views
Parsing HTTP headers from &HashMap<String, String> into http::HeaderMap
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 ...
0
votes
1
answer
166
views
Transfer-Encoding: chunked parser - JavaScript
This code parses a series of Uint8Arrays that comprise a Transfer-Encoding: chunked request
...
11
votes
2
answers
1k
views
Parsing HTTP headers in C
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 ...
4
votes
1
answer
113
views
Go Program for Concurrent FHIR Resource Uploads – Does it Achieve True Concurrent Requests?
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 (...
1
vote
0
answers
45
views
HTTPHandler: Using lambdas to server specific paths
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 ...
1
vote
0
answers
41
views
WebServer HTTP Pynt Request/Response framework
The Pynt class defined the interface between the NisseServer object and code that handles input on a stream. This proivdes an ...
1
vote
1
answer
63
views
WebServer HTTP Response Header
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. ...
1
vote
0
answers
61
views
Interface Design for HTTP parsing / response
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 ...
2
votes
0
answers
59
views
Parsing dictionary list from malformed HTTP response in Vim raw channel callback
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 ...
4
votes
1
answer
152
views
Writing a HTTP server in C
Code
...
4
votes
0
answers
135
views
A simple local API proxy
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 ...
2
votes
1
answer
80
views
3
votes
1
answer
197
views
Get HTTP status of many URLs
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 ...
3
votes
1
answer
173
views
HTTP Request-Line parser
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 ...