This repository was archived by the owner on Feb 6, 2020. It is now read-only.
This repository was archived by the owner on Feb 6, 2020. It is now read-only.
Possible issues #1
Open
Description
According to our conversation on Twitter, these are possible issues (don't take all of them seriously, I'm a pedantic guy):
- I'm not really sure about whole this layout. How about having things like this:
session.c
andsession.h
with functions it has now + definition ofhttp_session_s
(in header - now it's inaccessible for external code),message.c
andmessage.h
withhttp_message_s
,http_error_codes
and functions likehttp_message_set_header
,http_request
andhttp_response
(and optionally parse-related function - I'm not sure if they fit right intosession.c
),- no
http.h
orhttp.h
which would only includesession.h
andmessage.h
, - possibly another pair of files (like
stream.{h,c}
) with those stream handling routines.
- we should think about caching those sessions and keeping them alive.
This is how I would do it, but it's your project and everything is up to you. Of course I will be very glad to help.
Also, please ping me here or on Twitter if I'm being unclear or something (I've temporarily monkey-patched my sleep
routine to call drink_coffee
routine instead ;) ).
Metadata
Metadata
Assignees
Labels
No labels