Interface SdkHttpResponse.Builder

    • Method Detail

      • statusCode

        int statusCode()
        The status text, exactly as it was configured with statusCode(int).
      • putHeader

        default SdkHttpResponse.Builder putHeader​(String headerName,
                                                  String headerValue)
        Add a single header to be included in the created HTTP response.

        This completely OVERRIDES any values already configured with this header name in the builder.

        Parameters:
        headerName - The name of the header to add (eg. "Host")
        headerValue - The value for the header
      • putHeader

        SdkHttpResponse.Builder putHeader​(String headerName,
                                          List<String> headerValues)
        Add a single header with multiple values to be included in the created HTTP response.

        This completely OVERRIDES any values already configured with this header name in the builder.

        Parameters:
        headerName - The name of the header to add
        headerValues - The values for the header
      • appendHeader

        SdkHttpResponse.Builder appendHeader​(String headerName,
                                             String headerValue)
        Add a single header to be included in the created HTTP request.

        This will ADD the value to any existing values already configured with this header name in the builder.

        Parameters:
        headerName - The name of the header to add
        headerValue - The value for the header