Skip to content
Snippets Groups Projects
Select Git revision
  • release-2025-05-15-with-patches protected
  • main default protected
  • release-2025-03-27-with-patches protected
  • release-2024-12-30-with-client-builder protected
  • release-2024-12-26-with-client-builder protected
  • release-2024-11-05-with-client-builder protected
  • release-2024-08-16-with-client-builder protected
  • release-2024-09-09-with-client-builder protected
  • release-2024-08-28-with-client-builder protected
  • release-2024-10-09-with-client-builder protected
  • sbuttgereit/expose_client_builder_with_hyper_1_0
  • release-2025-05-15
  • release-2025-05-09
  • release-2025-05-02
  • release-2025-04-23
  • release-2025-03-27
  • release-2025-03-25
  • release-2025-03-10
  • release-2025-03-04
  • release-2025-02-20
  • release-2025-02-12
  • release-2025-02-03
  • release-2025-01-28
  • release-2025-01-23
  • release-2025-01-17
  • release-2025-01-14
  • release-2024-12-30
  • release-2024-12-26
  • release-2024-12-16
  • release-2024-12-03
  • release-2024-11-05
31 results

src

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    david-perez authored
    The protocol specifies it should be set by default to `application/json`
    in HTTP responses, even when there are no output shape members, since in
    that case an empty JSON payload `{}` is serialized. There are server
    protocol tests asserting this behavior.
    
    To implement this behavior, the `RestJsonHttpBindingResolver` class has
    been introduced, which mostly delegates to the
    `HttpTraitHttpBindingResolver`, but tweaks the response `Content-Type`
    header.
    
    Note this behavior is different than the client's, which should not
    serialize a JSON payload if there are no input shape members to be
    serialized to the body, and as such does not need to set the
    `Content-Type` header.
    
    This commit also deletes the `ServerRestJson` and `ServerRestXml`
    classes, since they were exact copies of their client counterparts. The
    latter was hosted in `ServerRustXml.kt`, which has been renamed to
    `ServerRestXml.kt`.
    acc56f83
    History
    Name Last commit Last update
    ..