diff options
Diffstat (limited to 'src/include/microspdy.h')
-rw-r--r-- | src/include/microspdy.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/include/microspdy.h b/src/include/microspdy.h index 3b36025f..a5714b2d 100644 --- a/src/include/microspdy.h +++ b/src/include/microspdy.h | |||
@@ -42,8 +42,17 @@ | |||
42 | * "platform.h" in the libmicrospdy distribution).<p> | 42 | * "platform.h" in the libmicrospdy distribution).<p> |
43 | * | 43 | * |
44 | * All of the functions returning SPDY_YES/SPDY_NO return | 44 | * All of the functions returning SPDY_YES/SPDY_NO return |
45 | * SPDY_INPUT_ERROR when any of the parameters are invalid, e.g., | 45 | * SPDY_INPUT_ERROR when any of the parameters are invalid, e.g. |
46 | * required parameter is NULL. | 46 | * required parameter is NULL.<p> |
47 | * | ||
48 | * The library does not check if anything at the application layer -- | ||
49 | * requests and responses -- is correct. For example, it | ||
50 | * is up to the user to check if a client is sending HTTP body but the | ||
51 | * method is GET.<p> | ||
52 | * | ||
53 | * The SPDY flow control is just partially implemented: the receiving | ||
54 | * window is updated, and the client is notified, to prevent a client | ||
55 | * from stop sending POST body data, for example. | ||
47 | */ | 56 | */ |
48 | #ifndef SPDY_MICROSPDY_H | 57 | #ifndef SPDY_MICROSPDY_H |
49 | #define SPDY_MICROSPDY_H | 58 | #define SPDY_MICROSPDY_H |
@@ -647,8 +656,10 @@ typedef int | |||
647 | * @param more a flag saying if more data related to the request is | 656 | * @param more a flag saying if more data related to the request is |
648 | * expected to be received. HTTP body may arrive (e.g. POST data); | 657 | * expected to be received. HTTP body may arrive (e.g. POST data); |
649 | * then SPDY_NewDataCallback will be called for the connection. | 658 | * then SPDY_NewDataCallback will be called for the connection. |
650 | * It is also possible that more headers/trailers may arrive; | 659 | * It is also possible that more headers/trailers arrive; |
651 | * then the same callback will be invoked. | 660 | * then the same callback will be invoked. The user should detect |
661 | * that it is not the first invocation of the function for that | ||
662 | * request. | ||
652 | */ | 663 | */ |
653 | typedef void (*SPDY_NewRequestCallback) (void * cls, | 664 | typedef void (*SPDY_NewRequestCallback) (void * cls, |
654 | struct SPDY_Request * request, | 665 | struct SPDY_Request * request, |
@@ -851,7 +862,7 @@ SPDY_set_panic_func (SPDY_PanicCallback cb, | |||
851 | * established by a client | 862 | * established by a client |
852 | * @param sccb callback called when a session is closed | 863 | * @param sccb callback called when a session is closed |
853 | * @param nrcb callback called when a client sends request | 864 | * @param nrcb callback called when a client sends request |
854 | * @param npdcb callback called when HTTP POST params are received | 865 | * @param npdcb callback called when HTTP body (POST data) is received |
855 | * after request | 866 | * after request |
856 | * @param cls common extra argument to all of the callbacks | 867 | * @param cls common extra argument to all of the callbacks |
857 | * @param ... list of options (type-value pairs, | 868 | * @param ... list of options (type-value pairs, |