Commit 39d50f9b authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Update doc

parent 45f07abf
...@@ -20,5 +20,5 @@ Contents: ...@@ -20,5 +20,5 @@ Contents:
Resources Resources
--------- ---------
* http://tools.ietf.org/html/draft-ietf-httpbis-http2-04 * http://tools.ietf.org/html/draft-ietf-httpbis-http2-06
* http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-01 * http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-03
...@@ -95,8 +95,8 @@ void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t* buf); ...@@ -95,8 +95,8 @@ void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t* buf);
* Packs HEADERS frame |frame| in wire format and store it in * Packs HEADERS frame |frame| in wire format and store it in
* |*buf_ptr|. The capacity of |*buf_ptr| is |*buflen_ptr| bytes. * |*buf_ptr|. The capacity of |*buf_ptr| is |*buflen_ptr| bytes.
* This function expands |*buf_ptr| as necessary to store frame. When * This function expands |*buf_ptr| as necessary to store frame. When
* expansion occurred, memory previously pointed by |*buf_ptr| may be * expansion occurred, memory previously pointed by |*buf_ptr| may
* freed. |*buf_ptr| and |*buflen_ptr| are updated accordingly. * change. |*buf_ptr| and |*buflen_ptr| are updated accordingly.
* *
* frame->hd.length is assigned after length is determined during * frame->hd.length is assigned after length is determined during
* packing process. * packing process.
...@@ -280,8 +280,8 @@ int nghttp2_frame_unpack_settings_payload(nghttp2_settings_entry **iv_ptr, ...@@ -280,8 +280,8 @@ int nghttp2_frame_unpack_settings_payload(nghttp2_settings_entry **iv_ptr,
* Packs PUSH_PROMISE frame |frame| in wire format and store it in * Packs PUSH_PROMISE frame |frame| in wire format and store it in
* |*buf_ptr|. The capacity of |*buf_ptr| is |*buflen_ptr| bytes. * |*buf_ptr|. The capacity of |*buf_ptr| is |*buflen_ptr| bytes.
* This function expands |*buf_ptr| as necessary to store frame. When * This function expands |*buf_ptr| as necessary to store frame. When
* expansion occurred, memory previously pointed by |*buf_ptr| may be * expansion occurred, memory previously pointed by |*buf_ptr| may
* freed. |*buf_ptr| and |*buflen_ptr| are updated accordingly. * change. |*buf_ptr| and |*buflen_ptr| are updated accordingly.
* *
* frame->hd.length is assigned after length is determined during * frame->hd.length is assigned after length is determined during
* packing process. * packing process.
...@@ -409,8 +409,7 @@ int nghttp2_frame_unpack_goaway(nghttp2_goaway *frame, ...@@ -409,8 +409,7 @@ int nghttp2_frame_unpack_goaway(nghttp2_goaway *frame,
* Packs WINDOW_UPDATE frame |frame| in wire frame format and store it * Packs WINDOW_UPDATE frame |frame| in wire frame format and store it
* in |*buf_ptr|. The capacity of |*buf_ptr| is |*buflen_ptr| * in |*buf_ptr|. The capacity of |*buf_ptr| is |*buflen_ptr|
* length. This function expands |*buf_ptr| as necessary to store * length. This function expands |*buf_ptr| as necessary to store
* given |frame|. In SPDY/3 spec, WINDOW_UPDATE wire format is always 16 * given |frame|.
* bytes long.
* *
* This function returns the size of packed frame if it succeeds, or * This function returns the size of packed frame if it succeeds, or
* returns one of the following negative error codes: * returns one of the following negative error codes:
......
...@@ -161,7 +161,7 @@ void nghttp2_hd_inflate_free(nghttp2_hd_context *inflater); ...@@ -161,7 +161,7 @@ void nghttp2_hd_inflate_free(nghttp2_hd_context *inflater);
* *
* This function expands |*buf_ptr| as necessary to store the * This function expands |*buf_ptr| as necessary to store the
* result. When expansion occurred, memory previously pointed by * result. When expansion occurred, memory previously pointed by
* |*buf_ptr| is freed. |*buf_ptr| and |*buflen_ptr| are updated * |*buf_ptr| may change. |*buf_ptr| and |*buflen_ptr| are updated
* accordingly. * accordingly.
* *
* This function returns the number of bytes outputted if it succeeds, * This function returns the number of bytes outputted if it succeeds,
...@@ -180,7 +180,7 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater, ...@@ -180,7 +180,7 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater,
/* /*
* Inflates name/value block stored in |in| with length |inlen|. This * Inflates name/value block stored in |in| with length |inlen|. This
* function performs decompression. The |*nva_ptr| points to the final * function performs decompression. The |*nva_ptr| points to the final
* result on succesful decompression. The caller must free |*nva_ptr| * result on successful decompression. The caller must free |*nva_ptr|
* using nghttp2_nv_array_del(). * using nghttp2_nv_array_del().
* *
* This function returns the number of name/value pairs in |*nva_ptr| * This function returns the number of name/value pairs in |*nva_ptr|
......
...@@ -63,8 +63,8 @@ uint32_t nghttp2_get_uint32(const uint8_t *data); ...@@ -63,8 +63,8 @@ uint32_t nghttp2_get_uint32(const uint8_t *data);
* least |min_length| bytes. If |min_length| > |*buflen_ptr|, * least |min_length| bytes. If |min_length| > |*buflen_ptr|,
* allocates new buffer having at least |min_length| bytes and assigns * allocates new buffer having at least |min_length| bytes and assigns
* its pointer to |*buf_ptr| and allocated number of bytes to * its pointer to |*buf_ptr| and allocated number of bytes to
* |*buflen_ptr|. The memory pointed by |*buf_ptr| previously is * |*buflen_ptr|. The memory pointed by |*buf_ptr| previously may
* freed. No memory copy is done between old and new buffer. * change. No memory copy is done between old and new buffer.
* |*buf_ptr| and |*buflen_ptr| are only updated iff this function * |*buf_ptr| and |*buflen_ptr| are only updated iff this function
* succeeds. * succeeds.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment