Skip to main content
Code Review

Questions tagged [http]

For code that acts as a HTTP client or server.

Filter by
Sorted by
Tagged with
5 votes
2 answers
139 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
138 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
99 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
43 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 ...
Loki Astari's user avatar
  • 97.6k
1 vote
0 answers
31 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 ...
Loki Astari's user avatar
  • 97.6k
0 votes
0 answers
27 views

WebServer HTTP Response Object

The Response object is how the user sends an HTTP reponse back from the server. This object is provided to them via the Pynt ...
Loki Astari's user avatar
  • 97.6k
0 votes
0 answers
21 views

WebServer HTTP Response Output Stream

Handles streaming of the response body. In construction you either pass a content-length value and the stream will allow you to send that many bites before cutting ...
Loki Astari's user avatar
  • 97.6k
1 vote
1 answer
49 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. ...
Loki Astari's user avatar
  • 97.6k
0 votes
0 answers
26 views

WebServer HTTP parsing The Body

The StreamInput class is used to wrap an existing std::iostream. It is either provided a body length or the encoding type (transport-encoding: chunked). It will ...
Loki Astari's user avatar
  • 97.6k
0 votes
0 answers
37 views

WebServer HTTP parsing Request

The request object is given an input stream in the constructor. I will parse the message command and the headers. It then creates a wrapper around the stream so the user can access the body. This ...
Loki Astari's user avatar
  • 97.6k
0 votes
0 answers
18 views

WebServer HTTP parsing The Header (for the Request Object)

This class keep tracks of the HTTP headers that are being read from the incoming request. Few special cases. As per RFC 9110 Section 5.3 some headers can only ...
Loki Astari's user avatar
  • 97.6k
1 vote
0 answers
52 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 ...
Loki Astari's user avatar
  • 97.6k
2 votes
0 answers
51 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 ...
S0AndS0's user avatar
  • 978
4 votes
1 answer
145 views

15 30 50 per page
1
2 3 4 5
...
28

AltStyle によって変換されたページ (->オリジナル) /