• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

achakravarti / argent / 318
0%

Build:
DEFAULT BRANCH: master
Ran 02 Feb 2021 03:25AM UTC
Jobs 1
Files 63
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
318

push

travis-ci-com

achakravarti
Add HTTP request interface

The HTTP request interface has been implemented through the
ag_http_request object of type ID AG_TYPEID_HTTP_REQUEST. Along with the
inherited object functions that are metaprogrammatically declared, the
following non-inherited functions have also been introduced:
  - ag_http_request_new()
  - ag_http_request_mime()
  - ag_http_request_method()
  - ag_http_request_client()
  - ag_http_request_url()
  - ag_http_request_param()

Supporting the HTTP request interface are the interfaces for the HTTP
MIME and HTTP method enumerations. These interfaces have been introduced
with their respective enumeration definitions along with the following
functions:
  - ag_http_mime_parse()
  - ag_http_mime_str()
  - ag_http_method_parse()
  - ag_http_method_str()

Meta-tests and test cases have also been added for these functions.

Parsing has been improved overall, with the introduction of the
AG_ERNO_PARSE error along with its exception handler. The following
additional parsing functions have been introduced:
  - ag_field_parse()
  - ag_http_url_parse()

An important change in the testing infrastructure has been the
introduction of sample generation macros, which help simplify the
testing code and avoid duplication. The important sample macros that
have been added include:
  - AG_SAMPLE_FIELD()
  - AG_SAMPLE_HTTP_CLIENT()
  - AG_SAMPLE_HTTP_REQUEST()
  - AG_SAMPLE_HTTP_URL()
  - AG_SAMPLE_VALUE_INT()
  - AG_SAMPLE_VALUE_UINT()
  - AG_SAMPLE_VALUE_FLOAT()
  - AG_SAMPLE_VALUE_STRING()
  - AG_SAMPLE_VALUE_OBJECT()

Finally, the assertion macros have been modified to exit() with
EXIT_FAILURE instead of abort()-ing so that the message for the
assertion that failed is printed to stdout.

This commit has been rebased from the issue/65/http-request branch.

Signed-off-by: Abhishek Chakravarti <abhishek@taranjali.org>

3784 of 4029 relevant lines covered (93.92%)

460.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 318.1 02 Feb 2021 03:25AM UTC 0
93.92
Travis Job 318.1
Source Files on build 318
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #318
  • cb7e8e1a on github
  • Prev Build on master (#317)
  • Next Build on master (#337)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc