Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 707 for punt (0.03 sec)

  1. src/archive/zip/register.go

    	}
    	return w.fw.Write(p)
    }
    
    func (w *pooledFlateWriter) Close() error {
    	w.mu.Lock()
    	defer w.mu.Unlock()
    	var err error
    	if w.fw != nil {
    		err = w.fw.Close()
    		flateWriterPool.Put(w.fw)
    		w.fw = nil
    	}
    	return err
    }
    
    var flateReaderPool sync.Pool
    
    func newFlateReader(r io.Reader) io.ReadCloser {
    	fr, ok := flateReaderPool.Get().(io.ReadCloser)
    	if ok {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. docs_src/additional_status_codes/tutorial001_an.py

    from fastapi.responses import JSONResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 734 bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial002_py39.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: list[str] = []
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 407 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

                        return null;
                    })).status(ApiResult.Status.OK).result());
        }
    
        // PUT /api/admin/dict/kuromoji/setting/{dictId}
        @Execute
        public JsonResponse<ApiResult> put$setting(final String dictId, final CreateBody body) {
            body.dictId = dictId;
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. internal/handlers/forwarder.go

    	}
    
    	return f
    }
    
    type bufPool struct {
    	sz   int
    	pool sync.Pool
    }
    
    func (b *bufPool) Put(buf []byte) {
    	if cap(buf) < b.sz || cap(buf) > b.sz*2 {
    		// Buffer too small or will likely leak memory after being expanded.
    		// Drop it.
    		return
    	}
    	b.pool.Put(&buf)
    }
    
    func (b *bufPool) Get() []byte {
    	bufp := b.pool.Get().(*[]byte)
    	return (*bufp)[:b.sz]
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/keymatch/ApiAdminKeymatchAction.java

                return null;
            })).status(Status.OK).result());
        }
    
        // PUT /api/admin/keymatch/setting
        @Execute
        public JsonResponse<ApiResult> put$setting(final CreateBody body) {
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
            final KeyMatch keyMatch = getKeyMatch(body).map(entity -> {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/role/ApiAdminRoleAction.java

                return null;
            })).status(ApiResult.Status.OK).result());
        }
    
        // PUT /api/admin/role/setting
        @Execute
        public JsonResponse<ApiResult> put$setting(final CreateBody body) {
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
            final Role entity = getRole(body).orElseGet(() -> {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/job/PythonJob.java

                    pb.directory(baseDir);
                    pb.redirectErrorStream(true);
                    final Map<String, String> environment = pb.environment();
                    environment.put("SESSION_ID", sessionId);
                    environment.put("OPENSEARCH_URL", SystemUtil.getSearchEngineHttpAddress());
                });
    
                final InputStreamThread it = jobProcess.getInputStreamThread();
                it.start();
    
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. docs_src/body_nested_models/tutorial004_py310.py

        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        image: Image | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed May 11 17:29:02 UTC 2022
    - 455 bytes
    - Viewed (0)
  10. docs_src/body_multiple_params/tutorial001_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: Union[str, None] = None,
        item: Union[Item, None] = None,
    ):
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 639 bytes
    - Viewed (0)
Back to top