Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-997

Move custom HTTP headers to config producers

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • 1.future
    • None
    • controller
    • None

      Currently custom HTTP headers are configured on CustomMediaTypeResponder which is nice, but on the other hand would be great if we could move it to controller. Maybe creating something like a CustomHttpHeaderProducer (or whatever name) using the same approach done for CorsConfigProducer. For example (just an example):

          public CustomHttpHeaderConfiguration demoConfig() {
              return HttpConfig.enableCustomHttpSupport()
                      .addHeader("Auth-Token","xxxx")
                      .addHeader("AG-X", "xxxx")
                      .build();
          } 
      

              dbeveniu Daniel Bevenius (Inactive)
              boliveir_managed_kafka_security (inactive user) Bruno Oliveira Silva (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: