[pull] master from GaijinEntertainment:master#783
Merged
Conversation
Tutorials: - 01: Basic HTTP requests (GET, POST, PUT, PATCH, DELETE, HEAD) - 02: Advanced requests (request builder, auth, redirects, forms) - 03: HTTP server basics (routes, JSON, path/query params) - 04: Advanced server (CORS, static files, redirects, custom status) - 05: Cookies and forms (add/get/each cookie, multipart, URL-encoded) Tests (108 tests, all passing): - test_client_basic: 15 tests for fire-and-forget client functions - test_request_builder: 9 tests for request builder pattern - test_server_routes: 11 tests for all HTTP method routes - test_server_advanced: 9 tests for advanced server features - test_cookies: 6 tests for cookie operations - test_forms: 7 tests for form data and file upload Also includes RST documentation pages for all 5 tutorials.
with_test_server now takes a type parameter (server_type : auto(ServerType)) and creates the server with new ServerType() inside the new_thread lambda, ensuring the server object lives in the correct thread context. All test callers updated from: var server = new MyServer() with_test_server(server, PORT) <| ... To: with_test_server(type<MyServer>, PORT) <| ...
[WIP] Add dasHV HTTP tutorials, tests, and binding fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )