Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withLeadingSlash (1.71 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectationState.java

                case Timeout:
                    return new RequestConditionFailure(requestMethod, path, String.format("Failed to handle %s %s due to a previous timeout%s", requestMethod, withLeadingSlash(path), contextSuffix(context)));
                default:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/UnexpectedRequestFailure.java

        }
    
        public UnexpectedRequestFailure(String method, String path, String context) {
            super(new UnexpectedRequestException(String.format("Unexpected request %s %s received%s", method, withLeadingSlash(path), contextSuffix(context))));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/AbstractFailure.java

            return failure;
        }
    
        @Override
        public void writeTo(int requestId, HttpExchange exchange) {
            throw new IllegalStateException();
        }
    
        protected static String withLeadingSlash(String path) {
            if (path.startsWith("/")) {
                return path;
            } else {
                return "/" + path;
            }
        }
    
        protected static String contextSuffix(String context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top