Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 220 for httpHost (0.19 sec)

  1. cni/pkg/plugin/cnieventclient_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package plugin
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"net"
    	"net/http"
    	"net/http/httptest"
    	"strings"
    	"testing"
    
    	"github.com/containernetworking/cni/pkg/skel"
    	cniv1 "github.com/containernetworking/cni/pkg/types/100"
    
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/cni/pkg/nodeagent"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/testdata/httptest/main/main.go

    // to pull in a lot of code.
    
    package main
    
    import (
    	"net/http"
    	"net/http/httptest"
    )
    
    type statusHandler int
    
    func (h *statusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    	w.WriteHeader(int(*h))
    }
    
    func main() {
    	status := statusHandler(http.StatusNotFound)
    	s := httptest.NewServer(&status)
    	defer s.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:11 UTC 2019
    - 464 bytes
    - Viewed (0)
  3. pkg/wasm/httpfetcher_test.go

    package wasm
    
    import (
    	"archive/tar"
    	"bytes"
    	"compress/gzip"
    	"context"
    	"fmt"
    	"net/http"
    	"net/http/httptest"
    	"regexp"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    )
    
    func TestWasmHTTPFetch(t *testing.T) {
    	var ts *httptest.Server
    
    	cases := []struct {
    		name           string
    		handler        func(http.ResponseWriter, *http.Request, int)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/routine_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filters
    
    import (
    	"bytes"
    	"net/http"
    	"net/http/httptest"
    	"strings"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/endpoints/request"
    	"k8s.io/klog/v2"
    )
    
    func TestPropogatingPanic(t *testing.T) {
    	var buf bytes.Buffer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_received_time_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filters
    
    import (
    	"net/http"
    	"net/http/httptest"
    	"testing"
    	"time"
    
    	"k8s.io/apiserver/pkg/endpoints/request"
    	testingclock "k8s.io/utils/clock/testing"
    )
    
    func TestWithRequestReceivedTimestamp(t *testing.T) {
    	receivedTimestampExpected := time.Now()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filters
    
    import (
    	"crypto/tls"
    	"crypto/x509"
    	"net/http"
    	"net/http/httptest"
    	"strings"
    	"testing"
    
    	auditinternal "k8s.io/apiserver/pkg/apis/audit"
    	"k8s.io/apiserver/pkg/audit/policy"
    )
    
    func TestFailedAuthnAudit(t *testing.T) {
    	sink := &fakeAuditSink{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 12 21:42:41 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filterlatency
    
    import (
    	"context"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    	"time"
    
    	sdktrace "go.opentelemetry.io/otel/sdk/trace"
    	"go.opentelemetry.io/otel/sdk/trace/tracetest"
    	noopoteltrace "go.opentelemetry.io/otel/trace/noop"
    
    	testingclock "k8s.io/utils/clock/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. pkg/probe/http/http_test.go

    		case "/success":
    			w.WriteHeader(http.StatusOK)
    		default:
    			http.Error(w, "", http.StatusInternalServerError)
    		}
    	})
    	server := httptest.NewServer(handler)
    	defer server.Close()
    
    	newportServer := httptest.NewServer(handler)
    	defer newportServer.Close()
    
    	testCases := map[string]struct {
    		redirect             string
    		expectLocalResult    probe.Result
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:40:08 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/content_type_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filters
    
    import (
    	"net/http"
    	"net/http/httptest"
    	"testing"
    )
    
    func noopHandler() http.HandlerFunc {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		// noop
    	})
    }
    
    func TestWithContentType(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 04 23:35:32 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  10. cmd/crossdomain-xml-handler_test.go

    package cmd
    
    import (
    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	"github.com/minio/mux"
    )
    
    // Test cross domain xml handler.
    func TestCrossXMLHandler(t *testing.T) {
    	// Server initialization.
    	router := mux.NewRouter().SkipClean(true).UseEncodedPath()
    	handler := setCrossDomainPolicyMiddleware(router)
    	srv := httptest.NewServer(handler)
    
    	resp, err := http.Get(srv.URL + crossDomainXMLEntity)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jul 08 14:31:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top