forked from zio/zio-http
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/ignore clrf after last multipart boundary #1
Closed
Conversation
This file contains 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
* update path codec. * rendering path codecs. * attaching docs. * attaching examples. * decoding and formatting path codecs. * endpoint overview. * endpoint with error example. * describing input and outputs. * describing errors. * transform methods. * openapi documentation. * sfix. * description of a book. * description annotation. * sfix. * remove extra layers. * generate endpoint from openapi. * fix basePath for code generator. * generating cli app from endpoints. * update example path. * fmt.
* Use `fork` in NettyRuntime * Add comment to explain why to fork
…#2650) (zio#2714) * Explicit and customizable error messages for Endpoint BadRequest (zio#2650) * Update zio-http/shared/src/main/scala/zio/http/codec/BinaryCodecWithSchema.scala Co-authored-by: John A. De Goes <john@degoes.net> * Review changes * Integrate changes from main --------- Co-authored-by: John A. De Goes <john@degoes.net>
* implemented mutual ssl * review comments, refactor config * formatting
* initial cleanup. * core concepts with example. * add more contents. * rename the page. * fix mdoc error.
showcase for both client and server.
* testing http applications. * zio test section.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add to sidebar. * binary codecs for request and response bodies. * trivial fix. * revert faq. * fmt. * trivial code change. * use :+ instead of appended
* move dsl to reference. * remove unrelated index page. * introduce reference section. * better title. * revert bad commits. * revert more! * update sidebar. * update links.
* Remove Routes from HttpApp * Remove Routes from internal API and examples * Remove HttpApp from internal API and examples
* Avoid providing the environment on every request * Use an empty runtime for AppRef initialization
* Add info about home routes It took me a lot of time to find out how to express a route to the root path, a lot of friction. Lets make sure this never happens again by making this part of the very first example. Also: remove ZERO WIDTH NON-JOINER character. * breaking: Make `Root` a PathCodec ... to improve the DSL for root routes. Also: remove the 'watch mode' section from the docs as watch mode is not intended for starting users. * Replace `Root` by `Path.root`, `Empty` by `Path.empty` Remove `Empty`. * Document migration * Update documentation * sbt fmt * Merge 2798
* initial work. * fix. * update. * another update * fix title. * fix broken link. * add http4s and tapir. * fix broken link.
* move overview section to reference section. * move template to body section. * organize sidebar. * zio version.
* restructed sidebarjs and create tutorials section * added doc card * sidebar >> overview * fix faq link * fix sidebar.js * Update docs/examples/index.md change title Co-authored-by: Milad Khajavi <khajavi@gmail.com> * Update docs/reference/index.md reference Co-authored-by: Milad Khajavi <khajavi@gmail.com> * mv handler under routing section --------- Co-authored-by: Milad Khajavi <khajavi@gmail.com>
…io#2809) * Add tests to check if the ZIO Runtime is propagated to req execution * Empty commit * Execute flaky form test sequentially * empty
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* enable benchmark. * remove extra label zio-http. * use ubuntu-latest. * remove extra steps temporary. * Revert "remove extra label zio-http." This reverts commit 2ff090e. * test on personal repo. * remove condition. * remove extra labels. * clone the project. * workaround: git init. * git tag. * initial commit. * config git user and email. * do not freeze. * do not freeze plain text * remove extra stuffs. * revert changes. * update ci. * run only on pull request. * reduce the performance floor. * fmt. * remove trigger check on pull request events. * decrease performance floor to 300k/s.
* integration with zio config. * fix broken link. * sidebar. * make the docs compile-safe. * fmt. * fix line numbering.
* Prune the environment when wiring the server * Use explicit type when pruning * Provide fresh layers to suite
Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
* protobuf generator * update ci * fix HttpContentCodec * remove dependencies
* added a failing test for a schema with fields that are scala keywords * fixed the code to handle keywords, failing test passes now * enabling cross version building with scala 3 and scalameta 2.13 + scalafmt * replaced scalameta with hard coded list of keywords (scalameta didn't play well with cross version build) + fmt * after scalameta failed for tests cross version as well, I refined the dependency (only depend on parsers), excluded collections compat, and it now seem to work. Also refactored the code to get rid of a compilation warning
Unsafely fulfill Client promises to avoid race conditions
* Update ZIO to 2.1.1 * Update Java to 17/21 * Fix zio cli version * Remove deprecated call to java URL constructor * Test with ZIO 2.0.x * Bump ZIO back to 2.1.1 * Run Body.fromFile in blocking threadpool * Run `FileBody#asArray` in blocking threadpool * Close file in blocking threadpool * Wrap file.length() in ZIO.blocking * Run entire `fromFileZIO` in blocking threadpool * Use blocking aspect on MultipartSpec * Use blocking aspect on other suites * fmt * FormSpec blocking --------- Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
* Attempt fix to StreamingForm blocking * Run stream in blocking threadpool * Add FIXME comment * Disable flaky test for now
* run ci only on pull requests. * downgrade zio-cli.
…io#2846) apply more config parameters in WebSocketClientProtocolConfig
Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
* initial work. * rename. * add usage section. * create a separate section for declarative endpoints. * fmt. --------- Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
middleware diagrams. Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
* feat: add Routes#serve Method * fix: correct serve method * feat: move to class method * fix: refactor for last features --------- Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
Co-authored-by: Milad Khajavi <khajavi@gmail.com> Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Avoid unsafely running effects when handling websockets * Fix websocket failure promise * Run `queue.offer` synchronously * Add comment regarding sync offering
* Fix client proxy * Use `ctx.fireUserEventTriggered` instead of `super.userEventTriggered` * Fix compiling
* Fix connection pooled client timeouts * Fix test and use replace
seakayone
force-pushed
the
fix/ignore-clrf-after-last-multipart-boundary
branch
from
May 23, 2024 06:20
742e13c
to
0645065
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
fork
instead ofrunOrFork
in NettyRuntime (Usefork
instead ofrunOrFork
in NettyRuntime zio/zio-http#2782)BadRequest
handling zio/zio-http#2650) (Explicit and customizable error messages for Endpoint BadRequest (#2650) zio/zio-http#2714)Routes
nor anHttpApp
zio/zio-http#2488) (Provide HandlerAspect context via env instead of function param (#2488) zio/zio-http#2778)Root
aPathCodec
, removeEmpty
(breaking: MakeRoot
aPathCodec
, removeEmpty
zio/zio-http#2796)context
method to request context (Addcontext
method to request context zio/zio-http#2799)StreamingForm
blocking due tounsafe.run
(Attempt fix toStreamingForm
blocking due tounsafe.run
zio/zio-http#2845)