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

Move custom HTTP headers to config producers

    XMLWordPrintable

Details

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

    Description

      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();
          } 
      

      Attachments

        Activity

          People

            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

            Dates

              Created:
              Updated:
              Resolved: