Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,304 for pos3 (0.04 sec)

  1. docs_src/app_testing/app_b/test_main.py

    
    def test_create_item_bad_token():
        response = client.post(
            "/items/",
            headers={"X-Token": "hailhydra"},
            json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"},
        )
        assert response.status_code == 400
        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_create_existing_item():
        response = client.post(
            "/items/",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. docs_src/app_testing/app_b_an_py39/test_main.py

    
    def test_create_item_bad_token():
        response = client.post(
            "/items/",
            headers={"X-Token": "hailhydra"},
            json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"},
        )
        assert response.status_code == 400
        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_create_existing_item():
        response = client.post(
            "/items/",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    		"/healthz/delegate-health",
    		"/healthz/log",
    		"/healthz/ping",
    		"/healthz/poststarthook/delegate-post-start-hook",
    		"/healthz/poststarthook/generic-apiserver-start-informers",
    		"/healthz/poststarthook/max-in-flight-filter",
    		"/healthz/poststarthook/storage-object-count-tracker-hook",
    		"/healthz/poststarthook/wrapping-post-start-hook",
    		"/healthz/wrapping-health",
    		"/livez",
    		"/livez/delegate-health",
    		"/livez/log",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/iexport.go

    //         Tag  byte // 'V'
    //         Pos  Pos
    //         Type typeOff
    //     }
    //
    //     type Func struct {
    //         Tag       byte // 'F' or 'G'
    //         Pos       Pos
    //         TypeParams []typeOff  // only present if Tag == 'G'
    //         Signature Signature
    //     }
    //
    //     type Const struct {
    //         Tag   byte // 'C'
    //         Pos   Pos
    //         Value Value
    //     }
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. src/go/printer/testdata/parser.go

    	if isParam && p.tok == token.ELLIPSIS {
    		pos := p.pos
    		p.next()
    		typ := p.tryIdentOrType(isParam) // don't use parseType so we can provide better error message
    		if typ == nil {
    			p.error(pos, "'...' parameter is missing type")
    			typ = &ast.BadExpr{pos, p.pos}
    		}
    		if p.tok != token.RPAREN {
    			p.error(pos, "can use '...' with last parameter type only")
    		}
    		return &ast.Ellipsis{pos, typ}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

        @Execute
        public HtmlResponse index() {
            throw new UnsupportedOperationException();
        }
    
        // POST /api/admin/scheduler/{id}/start
        @Execute(urlPattern = "{}/@word")
        public JsonResponse<ApiResult> post$start(final String id) {
            scheduledJobService.getScheduledJob(id).ifPresent(entity -> {
                if (!entity.isEnabled() || entity.isRunning()) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/builder/RequestDataBuilder.java

                return method(Method.GET);
            }
    
            public RequestDataContext head() {
                return method(Method.HEAD);
            }
    
            public RequestDataContext post() {
                return method(Method.POST);
            }
    
            public RequestDataContext url(final String url) {
                data.setUrl(url);
                return this;
            }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_nested_models/test_tutorial009.py

    
    def test_post_body(client: TestClient):
        data = {"2": 2.2, "3": 3.3}
        response = client.post("/index-weights/", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == data
    
    
    def test_post_invalid_body(client: TestClient):
        data = {"foo": 2.2, "3": 3.3}
        response = client.post("/index-weights/", json=data)
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/SequentialOutputMatcher.groovy

                }
            }
            if (pos == actualLines.size() && pos < expectedLines.size()) {
                Assert.fail("Lines missing from actual result, starting at line ${pos + 1}.${NL}Expected: ${expectedLines[pos]}${NL}Actual output:${NL}$actual${NL}---")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/guide/PostExample.java

      final OkHttpClient client = new OkHttpClient();
    
      String post(String url, String json) throws IOException {
        RequestBody body = RequestBody.create(json, JSON);
        Request request = new Request.Builder()
            .url(url)
            .post(body)
            .build();
        try (Response response = client.newCall(request).execute()) {
          return response.body().string();
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top