[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface HttpRoute.URLRewriteOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.URLRewriteOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkservices.v1.HttpRoute.URLRewriteOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkservices.v1.HttpRoute.URLRewriteOrBuilder) \n\n public static interface HttpRoute.URLRewriteOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getHostRewrite()\n\n public abstract String getHostRewrite()\n\nPrior to forwarding the request to the selected destination, the requests\nhost header is replaced by this value.\n\n`string host_rewrite = 2;`\n\n### getHostRewriteBytes()\n\n public abstract ByteString getHostRewriteBytes()\n\nPrior to forwarding the request to the selected destination, the requests\nhost header is replaced by this value.\n\n`string host_rewrite = 2;`\n\n### getPathPrefixRewrite()\n\n public abstract String getPathPrefixRewrite()\n\nPrior to forwarding the request to the selected destination, the matching\nportion of the requests path is replaced by this value.\n\n`string path_prefix_rewrite = 1;`\n\n### getPathPrefixRewriteBytes()\n\n public abstract ByteString getPathPrefixRewriteBytes()\n\nPrior to forwarding the request to the selected destination, the matching\nportion of the requests path is replaced by this value.\n\n`string path_prefix_rewrite = 1;`"]]