Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 452 for errcode (0.05 sec)

  1. tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py

    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize("compress", [True, False])
    def test_gzip_request(compress):
        n = 1000
        headers = {}
        body = [1] * n
        data = json.dumps(body).encode()
        if compress:
            data = gzip.compress(data)
            headers["Content-Encoding"] = "gzip"
        headers["Content-Type"] = "application/json"
        response = client.post("/sum", content=data, headers=headers)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 886 bytes
    - Viewed (0)
  2. internal/logger/logrotate.go

    			stdErrEnc.Encode(&log.Entry{
    				Level:   ErrorKind,
    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    		if err := w.rotate(); err != nil {
    			msg := fmt.Sprintf("unable to rotate log file %v: %v", w.f.Name(), err)
    			stdErrEnc.Encode(&log.Entry{
    				Level:   ErrorKind,
    				Message: msg,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. internal/s3select/parquet/errors.go

    package parquet
    
    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

        )
        assertNull(
          Punycode.encode(a1000MaxCodePoint.repeat(2)),
        )
      }
    
      @Test fun invalidPunycode() {
        assertNull(Punycode.decode("xn--ls8h="))
      }
    
      private fun testEncodeDecode(
        unicode: String,
        punycode: String,
      ) {
        assertEquals(unicode, Punycode.decode(punycode))
        assertEquals(punycode, Punycode.encode(unicode))
      }
    
      private fun testDecodeOnly(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/websockets.md

    Se você precisa de algo fácil de integrar com o FastAPI, mas que seja mais robusto, suportado por Redis, PostgreSQL ou outros, verifique o <a href="https://github.com/encode/broadcaster" class="external-link" target="_blank">encode/broadcaster</a>.
    
    ///
    
    ## Mais informações
    
    Para aprender mais sobre as opções, verifique a documentação do Starlette para:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:20:59 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/error/redirect.jsp

    	redirectPage.append("/error/badrequest/");
    	response.sendRedirect(redirectPage.toString());
    } else if(!"badAuth".equals(type)) {
    	redirectPage.append("/error/notfound/?url=");
    	redirectPage.append(java.net.URLEncoder.encode(requestUri , "UTF-8"));
    	response.sendRedirect(redirectPage.toString());
    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/orig/view/error/redirect.jsp

    	redirectPage.append("/error/badrequest/");
    	response.sendRedirect(redirectPage.toString());
    } else if(!"badAuth".equals(type)) {
    	redirectPage.append("/error/notfound/?url=");
    	redirectPage.append(java.net.URLEncoder.encode(requestUri , "UTF-8"));
    	response.sendRedirect(redirectPage.toString());
    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. docs/ja/docs/advanced/websockets.md

    しかし、すべての接続がメモリ内の単一のリストで処理されるため、プロセスの実行中にのみ機能し、単一のプロセスでのみ機能することに注意してください。
    
    もしFastAPIと簡単に統合できて、RedisやPostgreSQLなどでサポートされている、より堅牢なものが必要なら、<a href="https://github.com/encode/broadcaster" class="external-link" target="_blank">encode/broadcaster</a> を確認してください。
    
    ///
    
    ## その他のドキュメント
    
    オプションの詳細については、Starletteのドキュメントを確認してください。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

      private const val INITIAL_N = 0x80
    
      /**
       * Returns null if any label is oversized so much that the encoder cannot encode it without
       * integer overflow. This will not return null for labels that fit within the DNS size
       * limits.
       */
      fun encode(string: String): String? {
        var pos = 0
        val limit = string.length
        val result = Buffer()
    
        while (pos < limit) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 03:04:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/ndr/NdrObject.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.dcerpc.ndr;
    
    
    @SuppressWarnings ( "javadoc" )
    public abstract class NdrObject {
    
        public abstract void encode ( NdrBuffer dst ) throws NdrException;
    
    
        public abstract void decode ( NdrBuffer src ) throws NdrException;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.1K bytes
    - Viewed (0)
Back to top