| serf.h (0.3.0) | | serf.h (0.3.1) |
| | |
| skipping to change at line 520 ¶ | | skipping to change at line 520 ¶ |
| serf_context_t *ctx, | | serf_context_t *ctx, |
| apr_socket_t *skt, | | apr_socket_t *skt, |
| serf_bucket_alloc_t *allocator); | | serf_bucket_alloc_t *allocator); |
| | |
| /** | | /** |
| * Create a bucket of type 'request bucket'. | | * Create a bucket of type 'request bucket'. |
| * This is basically a wrapper around @a serf_bucket_request_create, which | | * This is basically a wrapper around @a serf_bucket_request_create, which |
| * initializes the bucket using request, connection and/or context specific | | * initializes the bucket using request, connection and/or context specific |
| * settings. | | * settings. |
| * | | * |
| * If the host_url and/or user_agent options are set on the connection, | | * This function will set following header(s): |
| * headers 'Host' and/or 'User-Agent' will be set on the request message. | | * - Host: if the connection was created with @a serf_connection_create2. |
| */ | | */ |
| SERF_DECLARE(serf_bucket_t *) serf_request_bucket_request_create( | | SERF_DECLARE(serf_bucket_t *) serf_request_bucket_request_create( |
| serf_request_t *request, | | serf_request_t *request, |
| const char *method, | | const char *method, |
| const char *uri, | | const char *uri, |
| serf_bucket_t *body, | | serf_bucket_t *body, |
| serf_bucket_alloc_t *allocator); | | serf_bucket_alloc_t *allocator); |
| | |
| /** @} */ | | /** @} */ |
| | |
| | |
| skipping to change at line 903 ¶ | | skipping to change at line 903 ¶ |
| const serf_bucket_t *bucket, | | const serf_bucket_t *bucket, |
| apr_status_t status); | | apr_status_t status); |
| SERF_DECLARE(void) serf_debug__entered_loop(serf_bucket_alloc_t *allocator)
; | | SERF_DECLARE(void) serf_debug__entered_loop(serf_bucket_alloc_t *allocator)
; |
| SERF_DECLARE(void) serf_debug__closed_conn(serf_bucket_alloc_t *allocator); | | SERF_DECLARE(void) serf_debug__closed_conn(serf_bucket_alloc_t *allocator); |
| SERF_DECLARE(void) serf_debug__bucket_destroy(const serf_bucket_t *bucket); | | SERF_DECLARE(void) serf_debug__bucket_destroy(const serf_bucket_t *bucket); |
| SERF_DECLARE(void) serf_debug__bucket_alloc_check(serf_bucket_alloc_t *allo
cator); | | SERF_DECLARE(void) serf_debug__bucket_alloc_check(serf_bucket_alloc_t *allo
cator); |
| | |
| /* Version info */ | | /* Version info */ |
| #define SERF_MAJOR_VERSION 0 | | #define SERF_MAJOR_VERSION 0 |
| #define SERF_MINOR_VERSION 3 | | #define SERF_MINOR_VERSION 3 |
| #define SERF_PATCH_VERSION 0 | | #define SERF_PATCH_VERSION 1 |
| | |
| /* Version number string */ | | /* Version number string */ |
| #define SERF_VERSION_STRING APR_STRINGIFY(SERF_MAJOR_VERSION) "." \ | | #define SERF_VERSION_STRING APR_STRINGIFY(SERF_MAJOR_VERSION) "." \ |
| APR_STRINGIFY(SERF_MINOR_VERSION) "." \ | | APR_STRINGIFY(SERF_MINOR_VERSION) "." \ |
| APR_STRINGIFY(SERF_PATCH_VERSION) | | APR_STRINGIFY(SERF_PATCH_VERSION) |
| | |
| /** | | /** |
| * Check at compile time if the Serf version is at least a certain | | * Check at compile time if the Serf version is at least a certain |
| * level. | | * level. |
| * @param major The major version component of the version checked | | * @param major The major version component of the version checked |
| | |
| End of changes. 2 change blocks. |
| 3 lines changed or deleted | | 3 lines changed or added |
|