Skip to content

Commit

Permalink
Update api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Jan 30, 2024
1 parent 1cfc31e commit e326d09
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ int ulfius_set_string_body_request(struct _u_response * request, const char * st
* @param length the length of binary_body to set to the request body
* return U_OK on success
*/
int ulfius_set_binary_body_request(struct _u_request * request, const unsigned char * binary_body, const size_t length);
int ulfius_set_binary_body_request(struct _u_request * request, const char * binary_body, const size_t length);

/**
* ulfius_set_empty_body_request
Expand Down Expand Up @@ -820,7 +820,7 @@ int ulfius_set_string_body_response(struct _u_response * response, const unsigne
* @param length the length of body to set to the request body
* @return U_OK on success
*/
int ulfius_set_binary_body_response(struct _u_response * response, const unsigned int status, const unsigned char * body, const size_t length);
int ulfius_set_binary_body_response(struct _u_response * response, const unsigned int status, const char * body, const size_t length);

/**
* ulfius_set_empty_body_response
Expand Down Expand Up @@ -2487,6 +2487,10 @@ $ sudo make install

You can find some ready-to-use callback functions in the folder [example_callbacks](https://github.com/babelouest/ulfius/blob/master/example_callbacks).

## Update existing programs to 2.7.16 <a name="update-existing-programs-to-276"></a>

The `binary_body` type in `struct _u_request` and `struct _u_response` were changed from `void *` to `unsigned char *`. This change doesn't affect the set request body or set response body functions.

## Update existing programs from Ulfius 2.0 to 2.1 <a name="update-existing-programs-from-ulfius-20-to-21"></a>

- An annoying bug has been fixed that made streaming data a little buggy when used on Raspbian. Now if you don't know the data size you're sending, use the macro U_STREAM_SIZE_UNKNOWN instead of the previous value -1.
Expand Down

0 comments on commit e326d09

Please sign in to comment.