func (h *HTTPSBase64Transport) Do(request *transport.Request) (*transport.Response, error) {
	var buf bytes.Buffer
	encodingWriter := base64.NewEncoder(base64.StdEncoding, &buf)
	_, err := io.Copy(encodingWriter, request.Body)
	if err != nil {
		return nil, err
	}
	err = encodingWriter.Close()
	if err != nil {
		return nil, err
	}
	httpResponse, err := h.httpClient.Post(request.URL, "application/vnd.hbci", &buf)
	if err != nil {
		return nil, err
	}
	var reader io.Reader
	if httpResponse.StatusCode == http.StatusOK {
		reader = base64.NewDecoder(base64.StdEncoding, httpResponse.Body)
	} else {
		reader = httpResponse.Body
	}
	return &transport.Response{Body: ioutil.NopCloser(reader), Request: request}, nil
}
// Do performs the request to the HBCI server. If successful, it returns a
// populated transport.Response with the HTTP Response Body as Body and the
// request as Request.
//
// Before sending the request it will be encoded with Base64 encoding.
// When receiving the response with a status code 200 it will decode the response
// with Base64 encoding. A non 200 status code will be returned as is, without
// decoding it from Base64.
Do performs the request to the HBCI server. If successful, it returns a
populated transport.Response with the HTTP Response Body as Body and the
request as Request.

Before sending the request it will be encoded with Base64 encoding.
When receiving the response with a status code 200 it will decode the response
with Base64 encoding. A non 200 status code will be returned as is, without
decoding it from Base64.
// Do performs the request to the HBCI server . If successful it returns a // populated transport . Response with the HTTP Response Body as Body and the // request as Request . // // Before sending the request it will be encoded with Base64 encoding . // When receiving the response with a status code 200 it will decode the response // with Base64 encoding . A non 200 status code will be returned as is without // decoding it from Base64 .
func (h *HTTPSBase64Transport) Do(request *transport.Request) (*transport.Response, error) {
	var buf bytes.Buffer
	encodingWriter := base64.NewEncoder(base64.StdEncoding, &buf)
	_, err := io.Copy(encodingWriter, request.Body)
	if err != nil {
		return nil, err
	}
	err = encodingWriter.Close()
	if err != nil {
		return nil, err
	}
	httpResponse, err := h.httpClient.Post(request.URL, "application/vnd.hbci", &buf)
	if err != nil {
		return nil, err
	}
	var reader io.Reader
	if httpResponse.StatusCode == http.StatusOK {
		reader = base64.NewDecoder(base64.StdEncoding, httpResponse.Body)
	} else {
		reader = httpResponse.Body
	}
	return &transport.Response{Body: ioutil.NopCloser(reader), Request: request}, nil
}
func ( h * HTTPSBase64Transport ) Do ( request * transport . Request ) ( * transport . Response , error ) { var buf bytes . Buffer encodingWriter := base64 . NewEncoder ( base64 . StdEncoding , & buf ) _ , err := io . Copy ( encodingWriter , request . Body ) if err != nil { return nil , err } err = encodingWriter . Close ( ) if err != nil { return nil , err } httpResponse , err := h . httpClient . Post ( request . URL , " " , & buf ) if err != nil { return nil , err } var reader io . Reader if httpResponse . StatusCode == http . StatusOK { reader = base64 . NewDecoder ( base64 . StdEncoding , httpResponse . Body ) } else { reader = httpResponse . Body } return & transport . Response { Body : ioutil . NopCloser ( reader ) , Request : request } , nil }
Do performs the request to the HBCI server.
Do performs the request to the HBCI server .