![]() |
![]() |
![]() |
Cutter Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
Assertions for HTTP client/server based on libsoupAssertions for HTTP client/server based on libsoup — Checks that your HTTP client/server works as you expect with libsoup support. |
void soupcut_message_assert_equal_content_type (const gchar *expected, SoupMessage *message, ...); void soupcut_client_assert_equal_content_type (const gchar *expected, SoupCutClient *client, ...); void soupcut_client_assert_response (SoupCutClient *client, ...); void soupcut_client_assert_equal_body (const gchar *expected, SoupCutClient *client, ...); void soupcut_client_assert_match_body (const gchar *pattern, SoupCutClient *client, ...);
void soupcut_message_assert_equal_content_type (const gchar *expected, SoupMessage *message, ...);
Passes if expected
== message->response_headers->content_type
.
|
an expected Content-Type. |
|
a SoupMessage. |
|
optional message. See cut_message() for details.
|
Since 1.0.8
void soupcut_client_assert_equal_content_type (const gchar *expected, SoupCutClient *client, ...);
Passes if expected
equals to Content-Type of the latest
message of client
.
|
an expected Content-Type. |
|
a SoupCutClient. |
|
optional message. See cut_message() for details.
|
Since 1.0.8
void soupcut_client_assert_response (SoupCutClient *client, ...);
Passes if status code of client
is 2XX.
|
a SoupCutClient. |
|
optional message. See cut_message() for details.
|
Since 1.0.8
void soupcut_client_assert_equal_body (const gchar *expected, SoupCutClient *client, ...);
Passes if expected
== client->response_body->data
.
|
an expected response body. |
|
a SoupCutClient. |
|
optional message. See cut_message() for details.
|
Since 1.0.8
void soupcut_client_assert_match_body (const gchar *pattern, SoupCutClient *client, ...);
Passes if pattern
matches the response body of
the latest message of client
.
|
the regular expression pattern. |
|
a SoupCutClient. |
|
optional message. See cut_message() for details.
|
Since 1.0.8